diff options
author | Henrique Carvalho <henrique.carvalho@suse.com> | 2025-09-18 22:41:58 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-10-01 22:01:03 -0500 |
commit | 5676398315b73f21d6a4e2d36606ce94e8afc79e (patch) | |
tree | 9c26d367eaf3f9f22d0fe22dd924dcdb6cba5efd /fs | |
parent | a365f2c049b3846640234bc25e4f8c46abea6c98 (diff) |
smb: client: update cfid->last_access_time in open_cached_dir_by_dentry()
open_cached_dir_by_dentry() was missing an update of
cfid->last_access_time to jiffies, similar to what open_cached_dir()
has.
Add it to the function.
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/smb/client/cached_dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/cached_dir.c b/fs/smb/client/cached_dir.c index d714b7ba99ec..200a52220f2d 100644 --- a/fs/smb/client/cached_dir.c +++ b/fs/smb/client/cached_dir.c @@ -424,6 +424,7 @@ int open_cached_dir_by_dentry(struct cifs_tcon *tcon, cifs_dbg(FYI, "found a cached file handle by dentry\n"); kref_get(&cfid->refcount); *ret_cfid = cfid; + cfid->last_access_time = jiffies; spin_unlock(&cfids->cfid_list_lock); return 0; } |