Lines Matching refs:tcon

349 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);  local
352 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
372 struct cifs_tcon *tcon; local
381 tcon = tlink_tcon(tlink);
384 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
399 int tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
444 struct cifs_tcon *tcon; local
470 tcon = tlink_tcon(tlink);
472 oparms.tcon = tcon;
483 if (tcon->ses->server->oplocks)
487 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
497 io_parms.tcon = tcon;
501 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
543 tcon->ses->server->ops->close(xid, tcon, &fid);
563 struct cifs_tcon *tcon; local
568 tcon = tlink_tcon(tlink);
570 if (tcon->ses->server->ops->query_all_EAs == NULL) {
575 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
603 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
621 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
622 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
641 if (!tcon->unix_ext)
655 if ((fattr->cf_nlink < 1) && !tcon->unix_ext &&
676 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); local
677 struct TCP_Server_Info *server = tcon->ses->server;
683 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
737 struct cifs_tcon *tcon; local
750 tcon = tlink_tcon(tlink);
751 server = tcon->ses->server;
775 rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path,
802 if (tcon->unix_ext)
804 else if ((tcon->ses->capabilities &
805 tcon->ses->server->vals->cap_nt_find) == 0)
816 rc = CIFSFindFirst(xid, tcon, full_path,
845 tcon, cifs_sb, full_path,
859 simple_hashstr(tcon->treeName);
922 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1072 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
1091 if (tcon->unix_ext) {
1097 tcon->unix_ext = false;
1111 tcon->resource_id = CIFS_I(inode)->uniqueid;
1114 if (rc && tcon->pipe) {
1203 struct cifs_tcon *tcon; local
1210 tcon = tlink_tcon(tlink);
1216 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
1221 oparms.tcon = tcon;
1251 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1262 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1272 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1292 CIFSSMBClose(xid, tcon, fid.netfid);
1304 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
1309 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1344 struct cifs_tcon *tcon; local
1354 tcon = tlink_tcon(tlink);
1355 server = tcon->ses->server;
1367 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1368 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1369 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1383 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
1447 struct cifs_tcon *tcon, const unsigned int xid) argument
1452 if (tcon->unix_ext)
1474 if (tcon->unix_ext) {
1492 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1496 struct TCP_Server_Info *server = tcon->ses->server;
1500 tcon, xid);
1519 struct cifs_tcon *tcon, const unsigned int xid) argument
1534 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
1574 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
1585 struct cifs_tcon *tcon; local
1596 tcon = tlink_tcon(tlink);
1606 server = tcon->ses->server;
1608 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
1609 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
1615 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1616 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1618 tcon, xid);
1629 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
1637 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
1657 struct cifs_tcon *tcon; local
1678 tcon = tlink_tcon(tlink);
1679 server = tcon->ses->server;
1687 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
1724 struct cifs_tcon *tcon; local
1733 tcon = tlink_tcon(tlink);
1734 server = tcon->ses->server;
1740 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
1758 oparms.tcon = tcon;
1770 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
1773 CIFSSMBClose(xid, tcon, fid.netfid);
1789 struct cifs_tcon *tcon; local
1802 tcon = tlink_tcon(tlink);
1831 if (rc == -EEXIST && tcon->unix_ext) {
1845 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
1852 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2077 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2122 !tcon->unix_ext) {
2136 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2137 struct TCP_Server_Info *server = tcon->ses->server;
2159 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2207 struct cifs_tcon *tcon = NULL; local
2221 tcon = tlink_tcon(open_file->tlink);
2222 server = tcon->ses->server;
2224 rc = server->ops->set_file_size(xid, tcon, open_file,
2236 if (tcon == NULL) {
2240 tcon = tlink_tcon(tlink);
2241 server = tcon->ses->server;
2250 rc = server->ops->set_path_size(xid, tcon, full_path,
2424 struct cifs_tcon *tcon; local
2474 tcon = tlink_tcon(wfile->tlink);
2475 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);