diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-16 21:19:20 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-24 23:34:52 -0400 |
commit | 7b00ed6fe6321547b9d51f5bfb30e7b5932e6889 (patch) | |
tree | 8ec01978ab20718b0205932df3a5f9082a065b01 | |
parent | 84eb3532b574bb6a65c0aad9591b28b2adcd47d2 (diff) | |
download | linux-7b00ed6fe6321547b9d51f5bfb30e7b5932e6889.tar.gz linux-7b00ed6fe6321547b9d51f5bfb30e7b5932e6889.tar.bz2 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>
-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); } |