From c8188493fade11fef7f4a298256f35151d4720a6 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Fri, 10 Feb 2012 15:36:43 -0500 Subject: [PATCH] patch unionfs-debug-fixes.patch --- fs/unionfs/debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c index c07f6976fdb..21ce90cbcf8 100644 --- a/fs/unionfs/debug.c +++ b/fs/unionfs/debug.c @@ -10,6 +10,7 @@ */ #include "union.h" +#include "../mount.h" /* * Helper debugging functions for maintainers (and for users to report back @@ -445,17 +446,18 @@ void __unionfs_check_nd(const struct nameidata *nd, static unsigned int __mnt_get_count(struct vfsmount *mnt) { + struct mount *m = real_mount(mnt); #ifdef CONFIG_SMP unsigned int count = 0; int cpu; for_each_possible_cpu(cpu) { - count += per_cpu_ptr(mnt->mnt_pcp, cpu)->mnt_count; + count += per_cpu_ptr(m->mnt_pcp, cpu)->mnt_count; } return count; #else - return mnt->mnt_count; + return m->mnt_count; #endif } -- 2.34.1