summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/connect.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2023-09-01 02:15:14 -0500
committerSteve French <stfrench@microsoft.com>2023-09-07 00:06:04 -0500
commit6a50d71d0ffff6791737eb502b27f74fb87d0cae (patch)
treeab9837e182ea816083b76aaada3f4ef71e85c591 /fs/smb/client/connect.c
parentfeeec636b6b1cf3e6129e645411751b205c44976 (diff)
downloadlinux-stable-6a50d71d0ffff6791737eb502b27f74fb87d0cae.tar.gz
linux-stable-6a50d71d0ffff6791737eb502b27f74fb87d0cae.tar.bz2
linux-stable-6a50d71d0ffff6791737eb502b27f74fb87d0cae.zip
smb3: allow controlling maximum number of cached directories
Allow adjusting the maximum number of cached directories per share (defaults to 16) via mount parm "max_cached_dirs" Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/connect.c')
-rw-r--r--fs/smb/client/connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c
index 3bd71f982170..687754791bf0 100644
--- a/fs/smb/client/connect.c
+++ b/fs/smb/client/connect.c
@@ -2657,6 +2657,7 @@ cifs_get_tcon(struct cifs_ses *ses, struct smb3_fs_context *ctx)
tcon->retry = ctx->retry;
tcon->nocase = ctx->nocase;
tcon->broken_sparse_sup = ctx->no_sparse;
+ tcon->max_cached_dirs = ctx->max_cached_dirs;
if (ses->server->capabilities & SMB2_GLOBAL_CAP_DIRECTORY_LEASING)
tcon->nohandlecache = ctx->nohandlecache;
else