From: Al Viro Date: Tue, 17 Sep 2013 01:19:20 +0000 (-0400) Subject: put_mnt_ns(): use drop_collected_mounts() X-Git-Tag: next-20130919~50^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a21e5f8a923367b776f8f74c45751217142319d2;p=karo-tx-linux.git put_mnt_ns(): use drop_collected_mounts() ... rather than open-coding it Signed-off-by: Al Viro --- 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); }