cifs: use origin fullpath for automounts
authorPaulo Alcantara <pc@cjr.nz>
Sun, 18 Dec 2022 17:37:32 +0000 (14:37 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 19 Dec 2022 14:03:12 +0000 (08:03 -0600)
commit7ad54b98fc1f141cfb70cfe2a3d6def5a85169ff
tree6eb49be25d7938696cb4796d5a46c9a56ca6fc56
parent25cf01b7c9200d6ace5a59125d8166435dd9dea7
cifs: use origin fullpath for automounts

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>
fs/cifs/cifs_dfs_ref.c
fs/cifs/cifsproto.h
fs/cifs/dfs.h
fs/cifs/dir.c