]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cifs: add new field to track the last access time of cfid
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 25 Jul 2025 03:23:53 +0000 (22:23 -0500)
committerSteve French <stfrench@microsoft.com>
Sun, 27 Jul 2025 21:59:59 +0000 (16:59 -0500)
commit3edc68de5629efa39911e7c9687b19ad04051cab
tree4b704f60ebd34afa8d66996c80df4b8cdae6b251
parent2aaf1784835f5f3063ae2392689053ebafd27e01
cifs: add new field to track the last access time of cfid

The handlecache code today tracks the time at which dir lease was
acquired and the laundromat thread uses that to check for old
entries to cleanup.

However, if a directory is actively accessed, it should not
be chosen to expire first.

This change adds a new last_access_time field to cfid and
uses that to decide expiry of the cfid.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cached_dir.c
fs/smb/client/cached_dir.h