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 <[email protected]>
Signed-off-by: Steve French <[email protected]>
  • Loading branch information
darkrain42 authored and Steve French committed Nov 13, 2024
1 parent f3f611d commit 5e80774
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 5e80774

Please sign in to comment.