From: Henrique Carvalho Date: Fri, 19 Sep 2025 01:41:58 +0000 (-0300) Subject: smb: client: update cfid->last_access_time in open_cached_dir_by_dentry() X-Git-Tag: v6.17.8~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064ff81c51e8812f2f57ccfc4fc9e4480b1f187d;p=thirdparty%2Fkernel%2Fstable.git smb: client: update cfid->last_access_time in open_cached_dir_by_dentry() [ Upstream commit 5676398315b73f21d6a4e2d36606ce94e8afc79e ] 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 Reviewed-by: Enzo Matsumiya Signed-off-by: Steve French Signed-off-by: Sasha Levin --- diff --git a/fs/smb/client/cached_dir.c b/fs/smb/client/cached_dir.c index b69daeb1301b3..cc857a030a778 100644 --- a/fs/smb/client/cached_dir.c +++ b/fs/smb/client/cached_dir.c @@ -423,6 +423,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; }