vfs: spread struct mount - work with counters

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2011-11-24 22:37:54 -05:00
parent a73324da7a
commit 83adc75322
3 changed files with 66 additions and 62 deletions

View File

@@ -274,7 +274,7 @@ out:
*/
static inline int do_refcount_check(struct mount *mnt, int count)
{
int mycount = mnt_get_count(&mnt->mnt) - mnt->mnt.mnt_ghosts;
int mycount = mnt_get_count(mnt) - mnt->mnt.mnt_ghosts;
return (mycount > count);
}