Lines Matching defs:tcon

402 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
414 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
438 struct cifs_tcon *tcon;
447 tcon = tlink_tcon(tlink);
448 server = tcon->ses->server;
451 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
470 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path);
477 rc = server->ops->query_symlink(xid, tcon,
526 struct cifs_tcon *tcon;
552 tcon = tlink_tcon(tlink);
555 .tcon = tcon,
564 if (tcon->ses->server->oplocks)
568 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
578 io_parms.tcon = tcon;
582 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
628 tcon->ses->server->ops->close(xid, tcon, &fid);
648 struct cifs_tcon *tcon;
653 tcon = tlink_tcon(tlink);
655 if (tcon->ses->server->ops->query_all_EAs == NULL) {
660 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
688 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
705 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
706 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
752 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
768 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
769 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
791 if (!tcon->unix_ext)
805 if ((fattr->cf_nlink < 1) && !tcon->unix_ext &&
831 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
832 struct TCP_Server_Info *server = tcon->ses->server;
843 rc = server->ops->query_file_info(xid, tcon, cfile, &data);
913 * @tcon: information about the server share we have mounted
922 struct cifs_tcon *tcon,
935 if (tcon->unix_ext)
937 else if ((tcon->ses->capabilities &
938 tcon->ses->server->vals->cap_nt_find) == 0)
949 rc = CIFSFindFirst(xid, tcon, full_path,
960 static void cifs_set_fattr_ino(int xid, struct cifs_tcon *tcon, struct super_block *sb,
965 struct TCP_Server_Info *server = tcon->ses->server;
977 * If we have an inode pass a NULL tcon to ensure we don't
980 rc = server->ops->get_srv_inum(xid, *inode ? NULL : tcon, cifs_sb, full_path,
1005 fattr->cf_uniqueid = simple_hashstr(tcon->tree_name);
1018 struct cifs_tcon *tcon,
1022 struct TCP_Server_Info *server = tcon->ses->server;
1030 rc = server->ops->query_reparse_point(xid, tcon, cifs_sb,
1044 rc = server->ops->query_symlink(xid, tcon,
1064 if (tcon->posix_extensions)
1082 struct cifs_tcon *tcon;
1093 tcon = tlink_tcon(tlink);
1094 server = tcon->ses->server;
1101 rc = server->ops->query_path_info(xid, tcon, cifs_sb,
1118 rc = reparse_info_to_fattr(data, sb, xid, tcon,
1148 rc = cifs_backup_query_path_info(xid, tcon, sb,
1180 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, fattr);
1225 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path);
1269 struct cifs_tcon *tcon;
1277 tcon = tlink_tcon(tlink);
1278 server = tcon->ses->server;
1284 rc = server->ops->query_path_info(xid, tcon, cifs_sb,
1296 rc = reparse_info_to_fattr(data, sb, xid, tcon,
1325 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path);
1468 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
1490 if (tcon->unix_ext) {
1496 tcon->unix_ext = false;
1500 if (tcon->posix_extensions)
1522 if (rc && tcon->pipe) {
1613 struct cifs_tcon *tcon;
1620 tcon = tlink_tcon(tlink);
1626 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
1632 .tcon = tcon,
1662 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1673 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1683 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1703 CIFSSMBClose(xid, tcon, fid.netfid);
1715 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
1720 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1757 struct cifs_tcon *tcon;
1770 tcon = tlink_tcon(tlink);
1771 server = tcon->ses->server;
1776 if (tcon->nodelete) {
1789 cifs_close_deferred_file_under_dentry(tcon, full_path);
1791 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1792 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1793 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1808 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb, dentry);
1876 struct cifs_tcon *tcon, const unsigned int xid)
1881 if (tcon->posix_extensions) {
1885 } else if (tcon->unix_ext) {
1920 if (tcon->unix_ext) {
1938 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1945 struct TCP_Server_Info *server = tcon->ses->server;
1949 tcon, xid);
1969 struct cifs_tcon *tcon, const unsigned int xid)
1984 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
2024 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
2037 struct cifs_tcon *tcon;
2051 tcon = tlink_tcon(tlink);
2062 server = tcon->ses->server;
2064 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
2065 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
2072 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
2073 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
2075 tcon, xid);
2087 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
2095 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
2115 struct cifs_tcon *tcon;
2142 tcon = tlink_tcon(tlink);
2143 server = tcon->ses->server;
2151 if (tcon->nodelete) {
2157 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2194 struct cifs_tcon *tcon;
2206 tcon = tlink_tcon(tlink);
2207 server = tcon->ses->server;
2213 rc = server->ops->rename(xid, tcon, from_dentry,
2234 .tcon = tcon,
2246 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2249 CIFSSMBClose(xid, tcon, fid.netfid);
2268 struct cifs_tcon *tcon;
2287 tcon = tlink_tcon(tlink);
2305 cifs_close_deferred_file_under_dentry(tcon, from_name);
2307 cifs_close_deferred_file_under_dentry(tcon, to_name);
2314 cifs_close_all_deferred_files(tcon);
2330 if (rc == -EEXIST && tcon->unix_ext) {
2344 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2351 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2401 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2413 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2607 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2667 !tcon->unix_ext) {
2681 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2682 struct TCP_Server_Info *server = tcon->ses->server;
2707 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2755 struct cifs_tcon *tcon = NULL;
2769 tcon = tlink_tcon(open_file->tlink);
2770 server = tcon->ses->server;
2772 rc = server->ops->set_file_size(xid, tcon, open_file,
2784 if (tcon == NULL) {
2788 tcon = tlink_tcon(tlink);
2789 server = tcon->ses->server;
2798 rc = server->ops->set_path_size(xid, tcon, full_path,
2995 struct cifs_tcon *tcon;
3044 tcon = tlink_tcon(wfile->tlink);
3045 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);