Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4290
b: refs/heads/master
c: 202322e
h: refs/heads/master
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Jul 8, 2005
1 parent 2772d0b commit 314ef50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 6f50142e4b092a469920a0008fc23121c3d99f2f
refs/heads/master: 202322e6f7cd12e82b5ff0fa92bbdf517fcf0947
8 changes: 1 addition & 7 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ static void umount_tree(struct vfsmount *mnt)
for (p = mnt; p; p = next_mnt(p, mnt)) {
list_del(&p->mnt_list);
list_add(&p->mnt_list, &kill);
p->mnt_namespace = NULL;
}

while (!list_empty(&kill)) {
Expand Down Expand Up @@ -1449,15 +1450,8 @@ void __init mnt_init(unsigned long mempages)

void __put_namespace(struct namespace *namespace)
{
struct vfsmount *mnt;

down_write(&namespace->sem);
spin_lock(&vfsmount_lock);

list_for_each_entry(mnt, &namespace->list, mnt_list) {
mnt->mnt_namespace = NULL;
}

umount_tree(namespace->root);
spin_unlock(&vfsmount_lock);
up_write(&namespace->sem);
Expand Down

0 comments on commit 314ef50

Please sign in to comment.