vfs: move mnt_mountpoint to struct mount

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2011-11-24 22:25:07 -05:00
parent 0714a53380
commit a73324da7a
6 changed files with 23 additions and 24 deletions

View File

@@ -308,7 +308,7 @@ int propagate_mount_busy(struct mount *mnt, int refcnt)
for (m = propagation_next(&parent->mnt, &parent->mnt); m;
m = propagation_next(m, &parent->mnt)) {
child = __lookup_mnt(m, mnt->mnt.mnt_mountpoint, 0);
child = __lookup_mnt(m, mnt->mnt_mountpoint, 0);
if (child && list_empty(&child->mnt.mnt_mounts) &&
(ret = do_refcount_check(child, 1)))
break;
@@ -331,7 +331,7 @@ static void __propagate_umount(struct mount *mnt)
m = propagation_next(m, &parent->mnt)) {
struct mount *child = __lookup_mnt(m,
mnt->mnt.mnt_mountpoint, 0);
mnt->mnt_mountpoint, 0);
/*
* umount the child only if the child has no
* other children