]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb: client: improve purging of cached referrals
authorPaulo Alcantara <pc@manguebit.com>
Wed, 18 Sep 2024 05:03:45 +0000 (02:03 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 25 Sep 2024 02:51:48 +0000 (21:51 -0500)
commit9190cc0c97aafdae06015d468c6ca3991e32a23a
tree9a2558474b1daf10ffe526d427df5ada88f13151
parent242d23efc987151ecd34bc0cae4c0b737494fc40
smb: client: improve purging of cached referrals

Purge cached referrals that have a single target when reaching maximum
of cache size as the client won't need them to failover.  Otherwise
remove oldest cache entry.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/dfs_cache.c