1
0
Fork 0

put_mnt_ns(): use drop_collected_mounts()

... rather than open-coding it

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
wifi-calibration
Al Viro 2013-09-16 21:19:20 -04:00
parent 84eb3532b5
commit 7b00ed6fe6
1 changed files with 1 additions and 5 deletions

View File

@ -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);
}