summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHenrique Carvalho <henrique.carvalho@suse.com>2024-11-22 22:14:35 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:03:07 +0100
commit7fbe643b568199275e89028334ab671dffaca5b0 (patch)
tree7ccaae854fc206c7786a5d117c630713e3265414 /scripts
parent6e7724e319ae5f8a68f116edee7e1972855947e1 (diff)
downloadlinux-7fbe643b568199275e89028334ab671dffaca5b0.tar.gz
linux-7fbe643b568199275e89028334ab671dffaca5b0.tar.bz2
linux-7fbe643b568199275e89028334ab671dffaca5b0.zip
smb: client: disable directory caching when dir_cache_timeout is zero
[ Upstream commit ceaf1451990e3ea7fb50aebb5a149f57945f6e9f ] Setting dir_cache_timeout to zero should disable the caching of directory contents. Currently, even when dir_cache_timeout is zero, some caching related functions are still invoked, which is unintended behavior. Fix the issue by setting tcon->nohandlecache to true when dir_cache_timeout is zero, ensuring that directory handle caching is properly disabled. Fixes: 238b351d0935 ("smb3: allow controlling length of time directory entries are cached with dir leases") Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com> Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions