smb: client: get rid of dfs code dep in namespace.c
authorPaulo Alcantara <pc@manguebit.com>
Thu, 17 Aug 2023 15:34:05 +0000 (12:34 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 20 Aug 2023 21:05:50 +0000 (16:05 -0500)
commit348a04a8d1138c2569549d6f9a3816e3e7513321
tree665cd715be80b4a1f91dfe529a5caa0eb78cf9df
parent0a049935e47e30c62df165e4d6ff563ff9c002d5
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>
fs/smb/client/Makefile
fs/smb/client/cifsfs.h
fs/smb/client/cifsproto.h
fs/smb/client/dfs.c
fs/smb/client/dfs.h
fs/smb/client/inode.c
fs/smb/client/namespace.c