Lines Matching refs:tcon
348 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); local
351 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
374 struct cifs_tcon *tcon; local
383 tcon = tlink_tcon(tlink);
386 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
401 int tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
439 struct cifs_tcon *tcon; local
465 tcon = tlink_tcon(tlink);
467 oparms.tcon = tcon;
476 if (tcon->ses->server->oplocks)
480 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
490 io_parms.tcon = tcon;
494 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
536 tcon->ses->server->ops->close(xid, tcon, &fid);
556 struct cifs_tcon *tcon; local
561 tcon = tlink_tcon(tlink);
563 if (tcon->ses->server->ops->query_all_EAs == NULL) {
568 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
595 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
612 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
613 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
652 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
668 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
669 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
702 if (!tcon->unix_ext)
716 if ((fattr->cf_nlink < 1) && !tcon->unix_ext &&
737 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); local
738 struct TCP_Server_Info *server = tcon->ses->server;
744 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
810 struct cifs_tcon *tcon, argument
823 if (tcon->unix_ext)
825 else if ((tcon->ses->capabilities &
826 tcon->ses->server->vals->cap_nt_find) == 0)
837 rc = CIFSFindFirst(xid, tcon, full_path,
849 struct cifs_tcon *tcon, argument
857 struct TCP_Server_Info *server = tcon->ses->server;
873 *inode ? NULL : tcon,
900 fattr->cf_uniqueid = simple_hashstr(tcon->treeName);
918 struct cifs_tcon *tcon; local
935 tcon = tlink_tcon(tlink);
936 server = tcon->ses->server;
952 rc = server->ops->query_path_info(xid, tcon, cifs_sb,
971 rc = server->ops->query_reparse_tag(xid, tcon, cifs_sb,
997 rc = cifs_backup_query_path_info(xid, tcon, sb,
1025 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, &fattr);
1069 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1108 struct cifs_tcon *tcon; local
1121 tcon = tlink_tcon(tlink);
1137 rc = smb311_posix_query_path_info(xid, tcon, cifs_sb,
1174 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1319 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
1338 if (tcon->unix_ext) {
1344 tcon->unix_ext = false;
1348 if (tcon->posix_extensions)
1359 if (rc && tcon->pipe) {
1447 struct cifs_tcon *tcon; local
1454 tcon = tlink_tcon(tlink);
1460 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
1465 oparms.tcon = tcon;
1495 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1506 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1516 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1536 CIFSSMBClose(xid, tcon, fid.netfid);
1548 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
1553 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1589 struct cifs_tcon *tcon; local
1602 tcon = tlink_tcon(tlink);
1603 server = tcon->ses->server;
1608 if (tcon->nodelete) {
1621 cifs_close_deferred_file_under_dentry(tcon, full_path);
1622 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1623 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1624 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1638 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
1702 struct cifs_tcon *tcon, const unsigned int xid) argument
1707 if (tcon->posix_extensions)
1709 else if (tcon->unix_ext)
1741 if (tcon->unix_ext) {
1759 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1763 struct TCP_Server_Info *server = tcon->ses->server;
1767 tcon, xid);
1786 struct cifs_tcon *tcon, const unsigned int xid) argument
1801 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
1841 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
1853 struct cifs_tcon *tcon; local
1867 tcon = tlink_tcon(tlink);
1878 server = tcon->ses->server;
1880 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
1881 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
1887 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1888 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1890 tcon, xid);
1901 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
1909 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
1929 struct cifs_tcon *tcon; local
1956 tcon = tlink_tcon(tlink);
1957 server = tcon->ses->server;
1965 if (tcon->nodelete) {
1971 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2008 struct cifs_tcon *tcon; local
2017 tcon = tlink_tcon(tlink);
2018 server = tcon->ses->server;
2024 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
2042 oparms.tcon = tcon;
2054 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2057 CIFSSMBClose(xid, tcon, fid.netfid);
2075 struct cifs_tcon *tcon; local
2092 tcon = tlink_tcon(tlink);
2110 cifs_close_deferred_file_under_dentry(tcon, from_name);
2112 cifs_close_deferred_file_under_dentry(tcon, to_name);
2119 cifs_close_all_deferred_files(tcon);
2134 if (rc == -EEXIST && tcon->unix_ext) {
2148 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2155 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2206 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2218 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2422 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2482 !tcon->unix_ext) {
2496 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2497 struct TCP_Server_Info *server = tcon->ses->server;
2522 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2570 struct cifs_tcon *tcon = NULL; local
2584 tcon = tlink_tcon(open_file->tlink);
2585 server = tcon->ses->server;
2587 rc = server->ops->set_file_size(xid, tcon, open_file,
2599 if (tcon == NULL) {
2603 tcon = tlink_tcon(tlink);
2604 server = tcon->ses->server;
2613 rc = server->ops->set_path_size(xid, tcon, full_path,
2805 struct cifs_tcon *tcon; local
2854 tcon = tlink_tcon(wfile->tlink);
2855 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);