diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-17 03:19:20 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-25 05:34:52 +0200 |
commit | 7b00ed6fe6321547b9d51f5bfb30e7b5932e6889 (patch) | |
tree | 8ec01978ab20718b0205932df3a5f9082a065b01 /fs/namespace.c | |
parent | ncpfs: switch to %p[dD] (diff) | |
download | linux-7b00ed6fe6321547b9d51f5bfb30e7b5932e6889.tar.xz linux-7b00ed6fe6321547b9d51f5bfb30e7b5932e6889.zip |
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.c | 6 |
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); } |