/fs/cifs/ |
D | cifs_debug.c | 115 struct cifs_tcon *tcon; in cifs_debug_data_proc_show() local 186 tcon = list_entry(tmp3, struct cifs_tcon, in cifs_debug_data_proc_show() 189 dev_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in cifs_debug_data_proc_show() 191 tcon->treeName, tcon->tc_count); in cifs_debug_data_proc_show() 192 if (tcon->nativeFileSystem) { in cifs_debug_data_proc_show() 194 tcon->nativeFileSystem); in cifs_debug_data_proc_show() 198 le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics), in cifs_debug_data_proc_show() 199 le32_to_cpu(tcon->fsAttrInfo.Attributes), in cifs_debug_data_proc_show() 200 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength), in cifs_debug_data_proc_show() 201 tcon->tidStatus); in cifs_debug_data_proc_show() [all …]
|
D | cifsproto.h | 62 struct cifs_tcon *tcon); 190 const char *tree, struct cifs_tcon *tcon, 193 extern int CIFSFindFirst(const int xid, struct cifs_tcon *tcon, 199 extern int CIFSFindNext(const int xid, struct cifs_tcon *tcon, 203 extern int CIFSFindClose(const int, struct cifs_tcon *tcon, 206 extern int CIFSSMBQFileInfo(const int xid, struct cifs_tcon *tcon, 208 extern int CIFSSMBQPathInfo(const int xid, struct cifs_tcon *tcon, 213 extern int SMBQueryInformation(const int xid, struct cifs_tcon *tcon, 218 extern int CIFSSMBUnixQFileInfo(const int xid, struct cifs_tcon *tcon, 221 struct cifs_tcon *tcon, [all …]
|
D | cifssmb.c | 140 cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) in cifs_reconnect_tcon() argument 152 if (!tcon) in cifs_reconnect_tcon() 155 ses = tcon->ses; in cifs_reconnect_tcon() 162 if (tcon->tidStatus == CifsExiting) { in cifs_reconnect_tcon() 189 if (!tcon->retry) { in cifs_reconnect_tcon() 195 if (!ses->need_reconnect && !tcon->need_reconnect) in cifs_reconnect_tcon() 210 if (rc || !tcon->need_reconnect) { in cifs_reconnect_tcon() 215 mark_open_files_invalid(tcon); in cifs_reconnect_tcon() 216 rc = CIFSTCon(0, ses, tcon->treeName, tcon, nls_codepage); in cifs_reconnect_tcon() 231 reset_cifs_unix_caps(0, tcon, NULL, NULL); in cifs_reconnect_tcon() [all …]
|
D | connect.c | 289 struct cifs_tcon *tcon; in cifs_reconnect() local 315 tcon = list_entry(tmp2, struct cifs_tcon, tcon_list); in cifs_reconnect() 316 tcon->need_reconnect = true; in cifs_reconnect() 2595 static int match_tcon(struct cifs_tcon *tcon, const char *unc) in match_tcon() argument 2597 if (tcon->tidStatus == CifsExiting) in match_tcon() 2599 if (strncmp(tcon->treeName, unc, MAX_TREE_SIZE)) in match_tcon() 2608 struct cifs_tcon *tcon; in cifs_find_tcon() local 2612 tcon = list_entry(tmp, struct cifs_tcon, tcon_list); in cifs_find_tcon() 2613 if (!match_tcon(tcon, unc)) in cifs_find_tcon() 2615 ++tcon->tc_count; in cifs_find_tcon() [all …]
|
D | fscache.c | 43 void cifs_fscache_get_super_cookie(struct cifs_tcon *tcon) in cifs_fscache_get_super_cookie() argument 45 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fscache_get_super_cookie() 47 tcon->fscache = in cifs_fscache_get_super_cookie() 49 &cifs_fscache_super_index_def, tcon); in cifs_fscache_get_super_cookie() 51 tcon->fscache); in cifs_fscache_get_super_cookie() 54 void cifs_fscache_release_super_cookie(struct cifs_tcon *tcon) in cifs_fscache_release_super_cookie() argument 56 cFYI(1, "%s: (0x%p)", __func__, tcon->fscache); in cifs_fscache_release_super_cookie() 57 fscache_relinquish_cookie(tcon->fscache, 0); in cifs_fscache_release_super_cookie() 58 tcon->fscache = NULL; in cifs_fscache_release_super_cookie() 65 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_fscache_enable_inode_cookie() local [all …]
|
D | cifsfs.c | 160 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_statfs() local 182 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_statfs() 183 (CIFS_POSIX_EXTENSIONS & le64_to_cpu(tcon->fsUnixInfo.Capability))) in cifs_statfs() 184 rc = CIFSSMBQFSPosixInfo(xid, tcon, buf); in cifs_statfs() 190 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_statfs() 191 rc = CIFSSMBQFSInfo(xid, tcon, buf); in cifs_statfs() 199 rc = SMBOldQFSInfo(xid, tcon, buf); in cifs_statfs() 341 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_show_options() local 343 srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr; in cifs_show_options() 345 cifs_show_security(s, tcon->ses->server); in cifs_show_options() [all …]
|
D | dir.c | 57 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() local 61 if (tcon->Flags & SMB_SHARE_IS_IN_DFS) in build_path_from_dentry() 62 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry() 124 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry() 158 struct cifs_tcon *tcon; in cifs_create() local 172 tcon = tlink_tcon(tlink); in cifs_create() 174 if (tcon->ses->server->oplocks) in cifs_create() 188 if (tcon->unix_ext && (tcon->ses->capabilities & CAP_UNIX) && in cifs_create() 190 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_create() 244 if (!tcon->unix_ext && (mode & S_IWUGO) == 0) in cifs_create() [all …]
|
D | link.c | 184 CIFSCreateMFSymLink(const int xid, struct cifs_tcon *tcon, in CIFSCreateMFSymLink() argument 214 rc = CIFSSMBOpen(xid, tcon, fromName, FILE_CREATE, GENERIC_WRITE, in CIFSCreateMFSymLink() 224 io_parms.tcon = tcon; in CIFSCreateMFSymLink() 229 CIFSSMBClose(xid, tcon, netfid); in CIFSCreateMFSymLink() 241 CIFSQueryMFSymLink(const int xid, struct cifs_tcon *tcon, in CIFSQueryMFSymLink() argument 256 rc = CIFSSMBOpen(xid, tcon, searchName, FILE_OPEN, GENERIC_READ, in CIFSQueryMFSymLink() 263 CIFSSMBClose(xid, tcon, netfid); in CIFSQueryMFSymLink() 274 io_parms.tcon = tcon; in CIFSQueryMFSymLink() 279 CIFSSMBClose(xid, tcon, netfid); in CIFSQueryMFSymLink() 356 io_parms.tcon = pTcon; in CIFSCheckMFSymlink() [all …]
|
D | ioctl.c | 41 struct cifs_tcon *tcon; in cifs_ioctl() local 67 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl() 68 caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_ioctl() 70 rc = CIFSGetExtAttr(xid, tcon, pSMBFile->netfid, in cifs_ioctl() 82 tcon = tlink_tcon(pSMBFile->tlink); in cifs_ioctl() 83 caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in cifs_ioctl()
|
D | file.c | 118 struct cifs_tcon *tcon; in cifs_posix_open() local 132 tcon = tlink_tcon(tlink); in cifs_posix_open() 136 rc = CIFSPOSIXCreate(xid, tcon, posix_flags, mode, pnetfid, presp_data, in cifs_posix_open() 172 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *poplock, in cifs_nt_open() argument 218 if (tcon->ses->capabilities & CAP_NT_SMBS) in cifs_nt_open() 219 rc = CIFSSMBOpen(xid, tcon, full_path, disposition, in cifs_nt_open() 224 rc = SMBLegacyOpen(xid, tcon, full_path, disposition, in cifs_nt_open() 232 if (tcon->unix_ext) in cifs_nt_open() 294 struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink); in cifsFileInfo_put() local 325 if (!tcon->need_reconnect && !cifs_file->invalidHandle) { in cifsFileInfo_put() [all …]
|
D | inode.c | 299 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); local 302 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->netfid, &find_data); 322 struct cifs_tcon *tcon; local 331 tcon = tlink_tcon(tlink); 334 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, 377 struct cifs_tcon *tcon; local 400 tcon = tlink_tcon(tlink); 402 rc = CIFSSMBOpen(xid, tcon, path, FILE_OPEN, GENERIC_READ, 412 io_parms.tcon = tcon; 456 CIFSSMBClose(xid, tcon, netfid); [all …]
|
D | cache.c | 149 const struct cifs_tcon *tcon = cookie_netfs_data; in cifs_super_get_key() local 153 sharename = extract_sharename(tcon->treeName); in cifs_super_get_key() 176 const struct cifs_tcon *tcon = cookie_netfs_data; in cifs_fscache_super_get_aux() local 179 auxdata.resource_id = tcon->resource_id; in cifs_fscache_super_get_aux() 195 const struct cifs_tcon *tcon = cookie_netfs_data; in cifs_fscache_super_check_aux() local 201 auxdata.resource_id = tcon->resource_id; in cifs_fscache_super_check_aux()
|
D | cifsglob.h | 599 struct cifs_tcon *tcon; member 683 static inline void cifs_stats_bytes_written(struct cifs_tcon *tcon, in cifs_stats_bytes_written() argument 687 spin_lock(&tcon->stat_lock); in cifs_stats_bytes_written() 688 tcon->bytes_written += bytes; in cifs_stats_bytes_written() 689 spin_unlock(&tcon->stat_lock); in cifs_stats_bytes_written() 693 static inline void cifs_stats_bytes_read(struct cifs_tcon *tcon, in cifs_stats_bytes_read() argument 696 spin_lock(&tcon->stat_lock); in cifs_stats_bytes_read() 697 tcon->bytes_read += bytes; in cifs_stats_bytes_read() 698 spin_unlock(&tcon->stat_lock); in cifs_stats_bytes_read() 703 #define cifs_stats_bytes_written(tcon, bytes) do {} while (0) argument [all …]
|
D | misc.c | 521 struct cifs_tcon *tcon; in is_valid_oplock_break() local 581 tcon = list_entry(tmp1, struct cifs_tcon, tcon_list); in is_valid_oplock_break() 582 if (tcon->tid != buf->Tid) in is_valid_oplock_break() 585 cifs_stats_inc(&tcon->num_oplock_brks); in is_valid_oplock_break() 587 list_for_each(tmp2, &tcon->openFileList) { in is_valid_oplock_break()
|
D | fscache.h | 102 static inline void cifs_fscache_get_super_cookie(struct cifs_tcon *tcon) {} in cifs_fscache_get_super_cookie() argument 104 cifs_fscache_release_super_cookie(struct cifs_tcon *tcon) {} in cifs_fscache_release_super_cookie() argument
|
D | transport.c | 795 send_lock_cancel(const unsigned int xid, struct cifs_tcon *tcon, in send_lock_cancel() argument 800 struct cifs_ses *ses = tcon->ses; in send_lock_cancel() 817 SendReceiveBlockingLock(const unsigned int xid, struct cifs_tcon *tcon, in SendReceiveBlockingLock() argument 826 if (tcon == NULL || tcon->ses == NULL) { in SendReceiveBlockingLock() 830 ses = tcon->ses; in SendReceiveBlockingLock() 910 rc = send_lock_cancel(xid, tcon, in_buf, out_buf); in SendReceiveBlockingLock()
|
D | cifsacl.c | 1172 struct cifs_tcon *tcon; in get_cifs_acl_by_path() local 1178 tcon = tlink_tcon(tlink); in get_cifs_acl_by_path() 1184 rc = CIFSSMBOpen(xid, tcon, path, FILE_OPEN, READ_CONTROL, in get_cifs_acl_by_path() 1188 rc = CIFSSMBGetCIFSACL(xid, tcon, fid, &pntsd, pacllen); in get_cifs_acl_by_path() 1189 CIFSSMBClose(xid, tcon, fid); in get_cifs_acl_by_path() 1226 struct cifs_tcon *tcon; in set_cifs_acl() local 1233 tcon = tlink_tcon(tlink); in set_cifs_acl() 1244 rc = CIFSSMBOpen(xid, tcon, path, FILE_OPEN, access_flags, in set_cifs_acl() 1252 rc = CIFSSMBSetCIFSACL(xid, tcon, fid, pnntsd, acllen, aclflag); in set_cifs_acl() 1255 CIFSSMBClose(xid, tcon, fid); in set_cifs_acl()
|