Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56c762e

Browse files
Paulo Alcantarasmfrench
authored andcommitted
cifs: Refactor out cifs_mount()
* Split and refactor the very large function cifs_mount() in multiple functions: - tcp, ses and tcon setup to mount_get_conns() - tcp, ses and tcon cleanup in mount_put_conns() - tcon tlink setup to mount_setup_tlink() - remote path checking to is_path_remote() * Implement 2 version of cifs_mount() for DFS-enabled builds and non-DFS-enabled builds (CONFIG_CIFS_DFS_UPCALL). In preparation for DFS failover support. Signed-off-by: Paulo Alcantara <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 9a596f5 commit 56c762e

File tree

2 files changed

+262
-183
lines changed

2 files changed

+262
-183
lines changed

fs/cifs/cifsproto.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ extern int cifs_match_super(struct super_block *, void *);
213213
extern void cifs_cleanup_volume_info(struct smb_vol *pvolume_info);
214214
extern struct smb_vol *cifs_get_volume_info(char *mount_data,
215215
const char *devname, bool is_smb3);
216-
extern int cifs_mount(struct cifs_sb_info *, struct smb_vol *);
216+
extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol);
217217
extern void cifs_umount(struct cifs_sb_info *);
218218
extern void cifs_mark_open_files_invalid(struct cifs_tcon *tcon);
219219
extern void cifs_reopen_persistent_handles(struct cifs_tcon *tcon);
@@ -524,6 +524,8 @@ extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
524524
const struct nls_table *codepage);
525525
extern int SMBencrypt(unsigned char *passwd, const unsigned char *c8,
526526
unsigned char *p24);
527+
extern void
528+
cifs_cleanup_volume_info_contents(struct smb_vol *volume_info);
527529

528530
void cifs_readdata_release(struct kref *refcount);
529531
int cifs_async_readv(struct cifs_readdata *rdata);

0 commit comments

Comments
 (0)