]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: account smb directory cache usage and per-tcon totals
authorBharath SM <bharathsm@microsoft.com>
Mon, 29 Sep 2025 20:57:46 +0000 (15:57 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Oct 2025 02:49:53 +0000 (21:49 -0500)
commit63eb8bd6c81d84a23fdc18fffd604e3ea38bb96c
treea9c7c02f27c2e621b34286cea8122284ad27ed08
parentdde6667fa3c8f52ec4b8afd487749e47d032d833
smb: client: account smb directory cache usage and per-tcon totals

Add lightweight accounting for directory lease cache usage
to aid debugging and limiting cache size in future. Track
per-directory entry/byte counts and maintain per-tcon
aggregates. Also expose the totals in /proc/fs/cifs/open_dirs.

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