summaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorAl Viro2008-03-22 04:59:49 +0100
committerAl Viro2008-03-28 01:47:46 +0100
commit7c4b93d8269b9d35971a8239426b1f6ddc3d5ef7 (patch)
treea3309f9237f9d67af000e484bef9c19a7951750a /fs/pnode.c
parent[PATCH] reduce stack footprint in namespace.c (diff)
downloadkernel-qcow2-linux-7c4b93d8269b9d35971a8239426b1f6ddc3d5ef7.tar.gz
kernel-qcow2-linux-7c4b93d8269b9d35971a8239426b1f6ddc3d5ef7.tar.xz
kernel-qcow2-linux-7c4b93d8269b9d35971a8239426b1f6ddc3d5ef7.zip
[PATCH] count ghost references to vfsmounts
make propagate_mount_busy() exclude references from the vfsmounts that had been isolated by umount_tree() and are just waiting for release_mounts() to dispose of their ->mnt_parent/->mnt_mountpoint. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index 05ba692bc540..1d8f5447f3f7 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -225,7 +225,7 @@ out:
*/
static inline int do_refcount_check(struct vfsmount *mnt, int count)
{
- int mycount = atomic_read(&mnt->mnt_count);
+ int mycount = atomic_read(&mnt->mnt_count) - mnt->mnt_ghosts;
return (mycount > count);
}