diff options
Diffstat (limited to 'fs/pnode.c')
-rw-r--r-- | fs/pnode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/pnode.c b/fs/pnode.c index 58933fd149ad..c7221bb19801 100644 --- a/fs/pnode.c +++ b/fs/pnode.c | |||
@@ -310,7 +310,7 @@ int propagate_mount_busy(struct mount *mnt, int refcnt) | |||
310 | 310 | ||
311 | for (m = propagation_next(parent, parent); m; | 311 | for (m = propagation_next(parent, parent); m; |
312 | m = propagation_next(m, parent)) { | 312 | m = propagation_next(m, parent)) { |
313 | child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint, 0); | 313 | child = __lookup_mnt_last(&m->mnt, mnt->mnt_mountpoint); |
314 | if (child && list_empty(&child->mnt_mounts) && | 314 | if (child && list_empty(&child->mnt_mounts) && |
315 | (ret = do_refcount_check(child, 1))) | 315 | (ret = do_refcount_check(child, 1))) |
316 | break; | 316 | break; |
@@ -332,8 +332,8 @@ static void __propagate_umount(struct mount *mnt) | |||
332 | for (m = propagation_next(parent, parent); m; | 332 | for (m = propagation_next(parent, parent); m; |
333 | m = propagation_next(m, parent)) { | 333 | m = propagation_next(m, parent)) { |
334 | 334 | ||
335 | struct mount *child = __lookup_mnt(&m->mnt, | 335 | struct mount *child = __lookup_mnt_last(&m->mnt, |
336 | mnt->mnt_mountpoint, 0); | 336 | mnt->mnt_mountpoint); |
337 | /* | 337 | /* |
338 | * umount the child only if the child has no | 338 | * umount the child only if the child has no |
339 | * other children | 339 | * other children |