namespace.c: get rid of mnt_ghosts

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2013-09-28 23:10:55 -04:00
parent 9559f68915
commit aba809cf09
3 changed files with 9 additions and 18 deletions

View file

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