Skip to content

Commit

Permalink
smb: cached directories can be more than root file handle
Browse files Browse the repository at this point in the history
Update this log message since cached fids may represent things other
than the root of a mount.

Fixes: e4029e0 ("cifs: find and use the dentry for cached non-root directories also")
Signed-off-by: Paul Aurich <paul@darkrain42.org>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
Paul Aurich authored and Steve French committed Nov 21, 2024
1 parent 343d7fe commit 128630e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/smb/client/cached_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ int open_cached_dir_by_dentry(struct cifs_tcon *tcon,
spin_lock(&cfids->cfid_list_lock);
list_for_each_entry(cfid, &cfids->entries, entry) {
if (dentry && cfid->dentry == dentry) {
cifs_dbg(FYI, "found a cached root file handle by dentry\n");
cifs_dbg(FYI, "found a cached file handle by dentry\n");
kref_get(&cfid->refcount);
*ret_cfid = cfid;
spin_unlock(&cfids->cfid_list_lock);
Expand Down

0 comments on commit 128630e

Please sign in to comment.