Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280165
b: refs/heads/master
c: 61ef47b
h: refs/heads/master
i:
  280163: d1b47cf
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 7d56e14 commit 1be6c38
Show file tree
Hide file tree
Showing 2 changed files with 8 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: c71053659e3bb27d44b79da0bb4abf5838c2060a
refs/heads/master: 61ef47b1e4ba9f2b939e6772e2f96082df0ae7eb
14 changes: 7 additions & 7 deletions trunk/fs/pnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,24 +319,24 @@ int propagate_mount_busy(struct vfsmount *mnt, int refcnt)
* NOTE: unmounting 'mnt' naturally propagates to all other mounts its
* parent propagates to.
*/
static void __propagate_umount(struct vfsmount *mnt)
static void __propagate_umount(struct mount *mnt)
{
struct vfsmount *parent = mnt->mnt_parent;
struct vfsmount *parent = mnt->mnt.mnt_parent;
struct vfsmount *m;

BUG_ON(parent == mnt);
BUG_ON(parent == &mnt->mnt);

for (m = propagation_next(parent, parent); m;
m = propagation_next(m, parent)) {

struct mount *child = __lookup_mnt(m,
mnt->mnt_mountpoint, 0);
mnt->mnt.mnt_mountpoint, 0);
/*
* umount the child only if the child has no
* other children
*/
if (child && list_empty(&child->mnt.mnt_mounts))
list_move_tail(&child->mnt.mnt_hash, &mnt->mnt_hash);
list_move_tail(&child->mnt.mnt_hash, &mnt->mnt.mnt_hash);
}
}

Expand All @@ -349,9 +349,9 @@ static void __propagate_umount(struct vfsmount *mnt)
*/
int propagate_umount(struct list_head *list)
{
struct vfsmount *mnt;
struct mount *mnt;

list_for_each_entry(mnt, list, mnt_hash)
list_for_each_entry(mnt, list, mnt.mnt_hash)
__propagate_umount(mnt);
return 0;
}

0 comments on commit 1be6c38

Please sign in to comment.