Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91915
b: refs/heads/master
c: 1a60a28
h: refs/heads/master
i:
  91913: a9c539e
  91911: a1a0c9f
v: v3
  • Loading branch information
Al Viro committed Apr 22, 2008
1 parent 4b1c6c1 commit 0d9db21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d59e7f582ef1c1988542d0fc3b36d0087b757ce
refs/heads/master: 1a60a280778ff90270fc7390d9ec102f713a5a29
8 changes: 4 additions & 4 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,20 +1091,20 @@ struct vfsmount *copy_tree(struct vfsmount *mnt, struct dentry *dentry,
struct vfsmount *collect_mounts(struct vfsmount *mnt, struct dentry *dentry)
{
struct vfsmount *tree;
down_read(&namespace_sem);
down_write(&namespace_sem);
tree = copy_tree(mnt, dentry, CL_COPY_ALL | CL_PRIVATE);
up_read(&namespace_sem);
up_write(&namespace_sem);
return tree;
}

void drop_collected_mounts(struct vfsmount *mnt)
{
LIST_HEAD(umount_list);
down_read(&namespace_sem);
down_write(&namespace_sem);
spin_lock(&vfsmount_lock);
umount_tree(mnt, 0, &umount_list);
spin_unlock(&vfsmount_lock);
up_read(&namespace_sem);
up_write(&namespace_sem);
release_mounts(&umount_list);
}

Expand Down

0 comments on commit 0d9db21

Please sign in to comment.