提交 7b00ed6f 编写于 作者: A Al Viro

put_mnt_ns(): use drop_collected_mounts()

... rather than open-coding it
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册