]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: client: update cfid->last_access_time in open_cached_dir_by_dentry()
authorHenrique Carvalho <henrique.carvalho@suse.com>
Fri, 19 Sep 2025 01:41:58 +0000 (22:41 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Oct 2025 03:01:03 +0000 (22:01 -0500)
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>
fs/smb/client/cached_dir.c

index d714b7ba99ec9bd9674f247935a5c22dba5c8a68..200a52220f2d33e098b8cdae54388e56a058f12d 100644 (file)
@@ -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;
                }