]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: use origin fullpath for automounts
authorPaulo Alcantara <pc@cjr.nz>
Sun, 18 Dec 2022 17:37:32 +0000 (14:37 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:44:03 +0000 (10:44 +0200)
commit7d8bb979f627b6bcb3da0e8a376c8e2c10b97a86
tree5b9a15f58ac2a7835250931f6cb6158e5150a602
parentec28c35029b7930f31117f9284874b63bea4f31b
cifs: use origin fullpath for automounts

commit 7ad54b98fc1f141cfb70cfe2a3d6def5a85169ff upstream.

Use TCP_Server_Info::origin_fullpath instead of cifs_tcon::tree_name
when building source paths for automounts as it will be useful for
domain-based DFS referrals where the connections and referrals would
get either re-used from the cache or re-created when chasing the dfs
link.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
[apanyaki: backport to v6.1-stable]
Signed-off-by: Andrew Paniakin <apanyaki@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cifs_dfs_ref.c
fs/smb/client/cifsproto.h
fs/smb/client/dir.c