Commit 7b00ed6f authored by Al Viro's avatar Al Viro

put_mnt_ns(): use drop_collected_mounts()

... rather than open-coding it
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 84eb3532
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment