summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel.spec7
-rw-r--r--weird-root-dentry-name-debug.patch19
2 files changed, 26 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index e3ec5d083..df78a7df1 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -799,6 +799,8 @@ Patch21303: disable-threading-in-compression-for-hibernate.patch
Patch21400: unhandled-irqs-switch-to-polling.patch
+Patch22000: weird-root-dentry-name-debug.patch
+
# compat-wireless patches
Patch50000: compat-wireless-config-fixups.patch
Patch50001: compat-wireless-pr_fmt-warning-avoidance.patch
@@ -1524,6 +1526,8 @@ ApplyPatch disable-threading-in-compression-for-hibernate.patch
ApplyPatch unhandled-irqs-switch-to-polling.patch
+ApplyPatch weird-root-dentry-name-debug.patch
+
# END OF PATCH APPLICATIONS
%endif
@@ -2428,6 +2432,9 @@ fi
# ||----w |
# || ||
%changelog
+* Wed Mar 07 2012 Dave Jones <davej@redhat.com>
+- Add debug patch for bugs 787171/766277
+
* Wed Mar 07 2012 Josh Boyer <jwboyer@redhat.com>
- Add modsign for x86 builds
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);