]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smb: client: add drop_dir_cache module parameter to invalidate cached dirents
authorBharath SM <bharathsm@microsoft.com>
Mon, 1 Sep 2025 19:46:00 +0000 (01:16 +0530)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Oct 2025 01:36:23 +0000 (20:36 -0500)
commitdde6667fa3c8f52ec4b8afd487749e47d032d833
tree1240a6650797bbe5c862cf5b5b995f7decb32a54
parentac3ad9845b9faf9cf29a736eaac00703bc821ac1
smb: client: add drop_dir_cache module parameter to invalidate cached dirents

Add write-only /sys/module/cifs/parameters/drop_dir_cache. Writing a
non-zero value iterates all tcons and calls invalidate_all_cached_dirs()
to drop cached directory entries. This is useful to force a dirent cache
drop across mounts for debugging and testing purpose.

Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c