summaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-29 05:10:55 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-25 05:34:58 +0200
commitaba809cf0944fdc5a83ef8b5864cdce2a99b2513 (patch)
treeea958e25bc153d0075933b8258723a3182ad2cec /fs/pnode.c
parentfold dup_mnt_ns() into its only surviving caller (diff)
downloadlinux-aba809cf0944fdc5a83ef8b5864cdce2a99b2513.tar.xz
linux-aba809cf0944fdc5a83ef8b5864cdce2a99b2513.zip
namespace.c: get rid of mnt_ghosts
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index 9af0df15256e..3cfd48cf887e 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -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;
}
/*