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)
1361 tcon->resource_id = CIFS_I(inode)->uniqueid;
1364 if (rc && tcon->pipe) {
1453 struct cifs_tcon *tcon; local
1460 tcon = tlink_tcon(tlink);
1466 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
1471 oparms.tcon = tcon;
1501 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1512 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1522 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1542 CIFSSMBClose(xid, tcon, fid.netfid);
1554 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
1559 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1595 struct cifs_tcon *tcon; local
1608 tcon = tlink_tcon(tlink);
1609 server = tcon->ses->server;
1614 if (tcon->nodelete) {
1627 cifs_close_deferred_file_under_dentry(tcon, full_path);
1628 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1629 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1630 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1644 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
1708 struct cifs_tcon *tcon, const unsigned int xid) argument
1713 if (tcon->posix_extensions)
1715 else if (tcon->unix_ext)
1747 if (tcon->unix_ext) {
1765 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1769 struct TCP_Server_Info *server = tcon->ses->server;
1773 tcon, xid);
1792 struct cifs_tcon *tcon, const unsigned int xid) argument
1807 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
1847 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
1859 struct cifs_tcon *tcon; local
1873 tcon = tlink_tcon(tlink);
1884 server = tcon->ses->server;
1886 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
1887 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
1893 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1894 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1896 tcon, xid);
1907 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
1915 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
1935 struct cifs_tcon *tcon; local
1962 tcon = tlink_tcon(tlink);
1963 server = tcon->ses->server;
1971 if (tcon->nodelete) {
1977 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2014 struct cifs_tcon *tcon; local
2023 tcon = tlink_tcon(tlink);
2024 server = tcon->ses->server;
2030 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
2048 oparms.tcon = tcon;
2060 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2063 CIFSSMBClose(xid, tcon, fid.netfid);
2081 struct cifs_tcon *tcon; local
2098 tcon = tlink_tcon(tlink);
2116 cifs_close_deferred_file_under_dentry(tcon, from_name);
2118 cifs_close_deferred_file_under_dentry(tcon, to_name);
2125 cifs_close_all_deferred_files(tcon);
2140 if (rc == -EEXIST && tcon->unix_ext) {
2154 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2161 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2212 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2224 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2428 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2488 !tcon->unix_ext) {
2502 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2503 struct TCP_Server_Info *server = tcon->ses->server;
2528 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2576 struct cifs_tcon *tcon = NULL; local
2590 tcon = tlink_tcon(open_file->tlink);
2591 server = tcon->ses->server;
2593 rc = server->ops->set_file_size(xid, tcon, open_file,
2605 if (tcon == NULL) {
2609 tcon = tlink_tcon(tlink);
2610 server = tcon->ses->server;
2619 rc = server->ops->set_path_size(xid, tcon, full_path,
2811 struct cifs_tcon *tcon; local
2860 tcon = tlink_tcon(wfile->tlink);
2861 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);