diff options
| author | Paulo Alcantara <[email protected]> | 2023-04-16 18:38:28 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2023-04-16 23:04:36 +0000 |
| commit | d5a863a153e90996ab2aef6b9e08d509f4d5662b (patch) | |
| tree | f8189068e8f4b663f1196e1e066c828cc968ea62 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | Linux 6.3-rc7 (diff) | |
| download | kernel-d5a863a153e90996ab2aef6b9e08d509f4d5662b.tar.gz kernel-d5a863a153e90996ab2aef6b9e08d509f4d5662b.zip | |
cifs: avoid dup prefix path in dfs_get_automount_devname()
@server->origin_fullpath already contains the tree name + optional
prefix, so avoid calling __build_path_from_dentry_optional_prefix() as
it might end up duplicating prefix path from @cifs_sb->prepath into
final full path.
Instead, generate DFS full path by simply merging
@server->origin_fullpath with dentry's path.
This fixes the following case
mount.cifs //root/dfs/dir /mnt/ -o ...
ls /mnt/link
where cifs_dfs_do_automount() will call smb3_parse_devname() with
@devname set to "//root/dfs/dir/link" instead of
"//root/dfs/dir/dir/link".
Fixes: 7ad54b98fc1f ("cifs: use origin fullpath for automounts")
Cc: <[email protected]> # 6.2+
Signed-off-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
