cifs: avoid re-lookups in dfs_cache_find()
authorPaulo Alcantara <pc@cjr.nz>
Tue, 17 Jan 2023 22:00:38 +0000 (19:00 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 18 Jan 2023 16:45:58 +0000 (10:45 -0600)
commit48d240bf00af943db6f069a53f090e444e85f760
tree2960f54a83efb8e1355048e06f1b1a4a4f319c02
parent9fb0db40513e27537fde63287aea920b60557a69
cifs: avoid re-lookups in dfs_cache_find()

Simply downgrade the write lock on cache updates from
cache_refresh_path() and avoid unnecessary re-lookup in
dfs_cache_find().

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c