]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
smb: cached directories can be more than root file handle
authorPaul Aurich <paul@darkrain42.org>
Fri, 8 Nov 2024 22:29:02 +0000 (14:29 -0800)
committerSteve French <stfrench@microsoft.com>
Thu, 21 Nov 2024 16:41:35 +0000 (10:41 -0600)
Update this log message since cached fids may represent things other
than the root of a mount.

Fixes: e4029e072673 ("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>
fs/smb/client/cached_dir.c

index 0ff2491c311d8a669c709fb94eb4a16a54515c68..adcba13352045fb530bddc20c445447d35191ea4 100644 (file)
@@ -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);