From: Paulo Alcantara Date: Tue, 26 Nov 2024 20:19:18 +0000 (-0300) Subject: smb: client: allow more DFS referrals to be cached X-Git-Tag: v6.13-rc1~23^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28ec614f2f9bfb57a76dd387be67bb6054f96b04;p=thirdparty%2Fkernel%2Flinux.git smb: client: allow more DFS referrals to be cached In some DFS setups, a single DFS share may contain hundreds of DFS links and increasing the DFS cache to allow more referrals to be cached improves DFS failover as the client will likely find a cached DFS referral when reconnecting and then avoiding unnecessary remounts. Signed-off-by: Paulo Alcantara (Red Hat) Signed-off-by: Steve French --- diff --git a/fs/smb/client/dfs_cache.c b/fs/smb/client/dfs_cache.c index 00820f57b434e..541608b0267ef 100644 --- a/fs/smb/client/dfs_cache.c +++ b/fs/smb/client/dfs_cache.c @@ -24,8 +24,8 @@ #include "dfs_cache.h" -#define CACHE_HTABLE_SIZE 32 -#define CACHE_MAX_ENTRIES 64 +#define CACHE_HTABLE_SIZE 512 +#define CACHE_MAX_ENTRIES 1024 #define CACHE_MIN_TTL 120 /* 2 minutes */ #define CACHE_DEFAULT_TTL 300 /* 5 minutes */