summaryrefslogtreecommitdiff
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-17 05:19:20 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-25 07:34:52 +0400
commit7b00ed6fe6321547b9d51f5bfb30e7b5932e6889 (patch)
tree8ec01978ab20718b0205932df3a5f9082a065b01 /fs/namespace.c
parent84eb3532b574bb6a65c0aad9591b28b2adcd47d2 (diff)
downloadlinux-7b00ed6fe6321547b9d51f5bfb30e7b5932e6889.tar.xz
put_mnt_ns(): use drop_collected_mounts()
... rather than open-coding it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index da5c49483430..5918fc31a636 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -2802,11 +2802,7 @@ void put_mnt_ns(struct mnt_namespace *ns)
{
if (!atomic_dec_and_test(&ns->count))
return;
- namespace_lock();
- br_write_lock(&vfsmount_lock);
- umount_tree(ns->root, 0);
- br_write_unlock(&vfsmount_lock);
- namespace_unlock();
+ drop_collected_mounts(&ns->root->mnt);
free_mnt_ns(ns);
}