aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-16 14:49:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:12:53 -0400
commit328e6d9014636afc2b3c979403b36faadb412657 (patch)
tree711b12f8ba8bf1dcc4cdadd270a55dd7f9035e38 /fs/pnode.c
parent3ab6abee59ac9ca84cc4a1e31224f1dccd44394c (diff)
switch unlock_mount() to namespace_unlock(), convert all umount_tree() callers
which allows to kill the last argument of umount_tree() and make release_mounts() static. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index 98e0d3a23fac..43617258fa6a 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -225,7 +225,6 @@ int propagate_mnt(struct mount *dest_mnt, struct mountpoint *dest_mp,
225 struct mount *prev_dest_mnt = dest_mnt; 225 struct mount *prev_dest_mnt = dest_mnt;
226 struct mount *prev_src_mnt = source_mnt; 226 struct mount *prev_src_mnt = source_mnt;
227 LIST_HEAD(tmp_list); 227 LIST_HEAD(tmp_list);
228 LIST_HEAD(umount_list);
229 228
230 for (m = propagation_next(dest_mnt, dest_mnt); m; 229 for (m = propagation_next(dest_mnt, dest_mnt); m;
231 m = propagation_next(m, dest_mnt)) { 230 m = propagation_next(m, dest_mnt)) {
@@ -261,10 +260,9 @@ out:
261 br_write_lock(&vfsmount_lock); 260 br_write_lock(&vfsmount_lock);
262 while (!list_empty(&tmp_list)) { 261 while (!list_empty(&tmp_list)) {
263 child = list_first_entry(&tmp_list, struct mount, mnt_hash); 262 child = list_first_entry(&tmp_list, struct mount, mnt_hash);
264 umount_tree(child, 0, &umount_list); 263 umount_tree(child, 0);
265 } 264 }
266 br_write_unlock(&vfsmount_lock); 265 br_write_unlock(&vfsmount_lock);
267 release_mounts(&umount_list);
268 return ret; 266 return ret;
269} 267}
270 268