Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4294
b: refs/heads/master
c: ed42c87
h: refs/heads/master
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Jul 8, 2005
1 parent b56b8ce commit f24fa05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24ca2af1e7cff55e71e9f86c61ddc56e894b8b40
refs/heads/master: ed42c879b7b1463aa7a15fdbbeb2b1914d60be8a
9 changes: 9 additions & 0 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,15 @@ static void expire_mount(struct vfsmount *mnt, struct list_head *mounts)
{
spin_lock(&vfsmount_lock);

/*
* Check if mount is still attached, if not, let whoever holds it deal
* with the sucker
*/
if (mnt->mnt_parent == mnt) {
spin_unlock(&vfsmount_lock);
return;
}

/*
* Check that it is still dead: the count should now be 2 - as
* contributed by the vfsmount parent and the mntget above
Expand Down

0 comments on commit f24fa05

Please sign in to comment.