Commit 128630e1 authored by Paul Aurich's avatar Paul Aurich Committed by Steve French
Browse files

smb: cached directories can be more than root file handle



Update this log message since cached fids may represent things other
than the root of a mount.

Fixes: e4029e07 ("cifs: find and use the dentry for cached non-root directories also")
Signed-off-by: default avatarPaul Aurich <paul@darkrain42.org>
Reviewed-by: default avatarBharath SM <bharathsm@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 343d7fe6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);