diff options
author | Paulo Alcantara <pc@cjr.nz> | 2022-10-11 18:16:07 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-12-19 08:03:11 -0600 |
commit | a73a26d97eca082fe13c964e5541543c1e78dc55 (patch) | |
tree | 51efe2befc14dfc395180eaeafa767c1f49664b1 /fs/cifs/cifsglob.h | |
parent | 6d740164d8903e6a0e98c30f80fac6af19ce0a21 (diff) | |
download | lwn-a73a26d97eca082fe13c964e5541543c1e78dc55.tar.gz lwn-a73a26d97eca082fe13c964e5541543c1e78dc55.zip |
cifs: split out ses and tcon retrieval from mount_get_conns()
Introduce and export two helpers for getting session and tcon during
mount(2). Those will be used by dfs when retrieving sessions and
tcons separately while chasing referrals. Besides, export
cifs_mount_ctx structure as it will be used by dfs code as well.
No functional changes.
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 82f2d3070c26..799e64427fde 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1760,6 +1760,20 @@ struct file_list { struct cifsFileInfo *cfile; }; +struct cifs_mount_ctx { + struct cifs_sb_info *cifs_sb; + struct smb3_fs_context *fs_ctx; + unsigned int xid; + struct TCP_Server_Info *server; + struct cifs_ses *ses; + struct cifs_tcon *tcon; +#ifdef CONFIG_CIFS_DFS_UPCALL + struct cifs_ses *root_ses; + uuid_t mount_id; + char *origin_fullpath, *leaf_fullpath; +#endif +}; + static inline void free_dfs_info_param(struct dfs_info3_param *param) { if (param) { |