diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-29 11:24:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-24 23:34:59 -0400 |
commit | 719ea2fbb553ab3f61a174a4b5861289dcc46cb1 (patch) | |
tree | 00c1e2c71caf2338cfe27f2854cf331515b4f411 /fs/pnode.c | |
parent | aab407fc5c0ce63e9fd4a34a790d7290d3e116a1 (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.c | 4 |
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 | } |
266 | out: | 266 | out: |
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 | ||