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) ...@@ -2802,11 +2802,7 @@ void put_mnt_ns(struct mnt_namespace *ns)
{ {
if (!atomic_dec_and_test(&ns->count)) if (!atomic_dec_and_test(&ns->count))
return; return;
namespace_lock(); drop_collected_mounts(&ns->root->mnt);
br_write_lock(&vfsmount_lock);
umount_tree(ns->root, 0);
br_write_unlock(&vfsmount_lock);
namespace_unlock();
free_mnt_ns(ns); 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