mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
namespace.c: get rid of mnt_ghosts
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
9559f68915
commit
aba809cf09
3 changed files with 9 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue