diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-08-17 12:34:05 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-08-20 16:05:50 -0500 |
commit | 348a04a8d1138c2569549d6f9a3816e3e7513321 (patch) | |
tree | 665cd715be80b4a1f91dfe529a5caa0eb78cf9df /fs/smb/client/cifsproto.h | |
parent | 0a049935e47e30c62df165e4d6ff563ff9c002d5 (diff) | |
download | linux-stable-348a04a8d1138c2569549d6f9a3816e3e7513321.tar.gz linux-stable-348a04a8d1138c2569549d6f9a3816e3e7513321.tar.bz2 linux-stable-348a04a8d1138c2569549d6f9a3816e3e7513321.zip |
smb: client: get rid of dfs code dep in namespace.c
Make namespace.c being built without requiring
CONFIG_CIFS_DFS_UPCALL=y by moving set_dest_addr() to dfs.c and call
it at the beginning of dfs_mount_share() so it can chase the DFS link
starting from the correct server in @ctx->dstaddr.
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsproto.h')
-rw-r--r-- | fs/smb/client/cifsproto.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/smb/client/cifsproto.h b/fs/smb/client/cifsproto.h index c7a7484efbd2..694d16acdf61 100644 --- a/fs/smb/client/cifsproto.h +++ b/fs/smb/client/cifsproto.h @@ -295,11 +295,7 @@ extern void cifs_put_tcp_session(struct TCP_Server_Info *server, int from_reconnect); extern void cifs_put_tcon(struct cifs_tcon *tcon); -#if IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) extern void cifs_release_automount_timer(void); -#else /* ! IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) */ -#define cifs_release_automount_timer() do { } while (0) -#endif /* ! IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) */ void cifs_proc_init(void); void cifs_proc_clean(void); |