*/
#include "union.h"
+#include "../mount.h"
/*
* Helper debugging functions for maintainers (and for users to report back
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
}