aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-29 11:24:49 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-24 23:34:59 -0400
commit719ea2fbb553ab3f61a174a4b5861289dcc46cb1 (patch)
tree00c1e2c71caf2338cfe27f2854cf331515b4f411 /fs/pnode.c
parentaab407fc5c0ce63e9fd4a34a790d7290d3e116a1 (diff)
new helpers: lock_mount_hash/unlock_mount_hash
aka br_write_{lock,unlock} of vfsmount_lock. Inlines in fs/mount.h, vfsmount_lock extern moved over there as well. 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, 2 insertions, 2 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index 3cfd48cf887e..58933fd149ad 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -264,12 +264,12 @@ int propagate_mnt(struct mount *dest_mnt, struct mountpoint *dest_mp,
264 prev_src_mnt = child; 264 prev_src_mnt = child;
265 } 265 }
266out: 266out:
267 br_write_lock(&vfsmount_lock); 267 lock_mount_hash();
268 while (!list_empty(&tmp_list)) { 268 while (!list_empty(&tmp_list)) {
269 child = list_first_entry(&tmp_list, struct mount, mnt_hash); 269 child = list_first_entry(&tmp_list, struct mount, mnt_hash);
270 umount_tree(child, 0); 270 umount_tree(child, 0);
271 } 271 }
272 br_write_unlock(&vfsmount_lock); 272 unlock_mount_hash();
273 return ret; 273 return ret;
274} 274}
275 275