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/inode.c | |
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/inode.c')
-rw-r--r-- | fs/smb/client/inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c index 0d4a78561acc..da2ec48dc0f6 100644 --- a/fs/smb/client/inode.c +++ b/fs/smb/client/inode.c @@ -58,13 +58,9 @@ static void cifs_set_ops(struct inode *inode) inode->i_data.a_ops = &cifs_addr_ops; break; case S_IFDIR: -#ifdef CONFIG_CIFS_DFS_UPCALL if (IS_AUTOMOUNT(inode)) { inode->i_op = &cifs_namespace_inode_operations; } else { -#else /* NO DFS support, treat as a directory */ - { -#endif inode->i_op = &cifs_dir_inode_ops; inode->i_fop = &cifs_dir_ops; } |