Skip to content

Commit 5676398

Browse files
hac-vsmfrench
authored andcommitted
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>
1 parent a365f2c commit 5676398

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/smb/client/cached_dir.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ int open_cached_dir_by_dentry(struct cifs_tcon *tcon,
424424
cifs_dbg(FYI, "found a cached file handle by dentry\n");
425425
kref_get(&cfid->refcount);
426426
*ret_cfid = cfid;
427+
cfid->last_access_time = jiffies;
427428
spin_unlock(&cfids->cfid_list_lock);
428429
return 0;
429430
}

0 commit comments

Comments
 (0)