summaryrefslogtreecommitdiffstats
path: root/weird-root-dentry-name-debug.patch
blob: 9179fc9b39575a7f3201b8240b6f271cfe60bb10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Bugzilla: 787171 766277
Upstream-status: Fedora mustard

debug patch for bz 787171/766277

diff --git a/fs/dcache.c b/fs/dcache.c
index bcbdb33..a6a5fdb 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2530,8 +2530,10 @@ global_root:
 	 */
 	if (IS_ROOT(dentry) &&
 	    (dentry->d_name.len != 1 || dentry->d_name.name[0] != '/')) {
-		WARN(1, "Root dentry has weird name <%.*s>\n",
-		     (int) dentry->d_name.len, dentry->d_name.name);
+		WARN(1, "Root dentry has weird name <%.*s>  vfsmnt:%s fs:%s\n",
+		     (int) dentry->d_name.len, dentry->d_name.name,
+			vfsmnt->mnt_root->d_name.name,
+			vfsmnt->mnt_sb->s_type->name);
 	}
 	if (!slash)
 		error = prepend(buffer, buflen, "/", 1);