OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84eb353
)
put_mnt_ns(): use drop_collected_mounts()
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 17 Sep 2013 01:19:20 +0000
(21:19 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 25 Oct 2013 03:34:52 +0000
(23:34 -0400)
... rather than open-coding it
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
patch
|
blob
|
history
diff --git
a/fs/namespace.c
b/fs/namespace.c
index
da5c494
..
5918fc3
100644
(file)
--- 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);
}