summaryrefslogtreecommitdiffstats
path: root/weird-root-dentry-name-debug.patch
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2012-03-07 17:12:06 -0500
committerDave Jones <davej@redhat.com>2012-03-07 17:12:06 -0500
commit40b1a0c51bc46ee87eb4af33811859ee8adbc546 (patch)
tree791fe1585482c0a20fb7ddf72a3abb1514bbd744 /weird-root-dentry-name-debug.patch
parentc2a12cd16fff536ed98eb457a85b3a0842b4f825 (diff)
downloadkernel-40b1a0c51bc46ee87eb4af33811859ee8adbc546.tar.gz
kernel-40b1a0c51bc46ee87eb4af33811859ee8adbc546.tar.xz
kernel-40b1a0c51bc46ee87eb4af33811859ee8adbc546.zip
Add debug patch for bugs 787171/766277
Diffstat (limited to 'weird-root-dentry-name-debug.patch')
-rw-r--r--weird-root-dentry-name-debug.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/weird-root-dentry-name-debug.patch b/weird-root-dentry-name-debug.patch
new file mode 100644
index 000000000..e2fb2e116
--- /dev/null
+++ b/weird-root-dentry-name-debug.patch
@@ -0,0 +1,19 @@
+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);