Lines Matching refs:child

227 	struct mount *child;  in propagate_one()  local
261 child = copy_tree(last_source, last_source->mnt.mnt_root, type); in propagate_one()
262 if (IS_ERR(child)) in propagate_one()
263 return PTR_ERR(child); in propagate_one()
265 mnt_set_mountpoint(m, mp, child); in propagate_one()
270 last_source = child; in propagate_one()
271 hlist_add_head(&child->mnt_hash, list); in propagate_one()
272 return count_mounts(m->mnt_ns, child); in propagate_one()
339 struct mount *child; in find_topper() local
344 child = list_first_entry(&mnt->mnt_mounts, struct mount, mnt_child); in find_topper()
345 if (child->mnt_mountpoint != mnt->mnt.mnt_root) in find_topper()
348 return child; in find_topper()
371 struct mount *m, *child, *topper; in propagate_mount_busy() local
388 child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint); in propagate_mount_busy()
389 if (!child) in propagate_mount_busy()
395 topper = find_topper(child); in propagate_mount_busy()
398 else if (!list_empty(&child->mnt_mounts)) in propagate_mount_busy()
401 if (do_refcount_check(child, count)) in propagate_mount_busy()
415 struct mount *m, *child; in propagate_mount_unlock() local
421 child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint); in propagate_mount_unlock()
422 if (child) in propagate_mount_unlock()
423 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_mount_unlock()
445 struct mount *child; in __propagate_umount() local
457 list_for_each_entry(child, &mnt->mnt_mounts, mnt_child) { in __propagate_umount()
458 if (child->mnt_mountpoint == mnt->mnt.mnt_root) in __propagate_umount()
460 if (!list_empty(&child->mnt_umounting) && IS_MNT_MARKED(child)) in __propagate_umount()
484 struct mount *mnt, *child, *tmp; in umount_list() local
486 list_for_each_entry_safe(child, tmp, &mnt->mnt_mounts, mnt_child) { in umount_list()
488 if (child->mnt_mountpoint == mnt->mnt.mnt_root) in umount_list()
489 list_move_tail(&child->mnt_umounting, to_restore); in umount_list()
491 umount_one(child, to_umount); in umount_list()
559 struct mount *child = __lookup_mnt(&m->mnt, in propagate_umount() local
561 if (!child) in propagate_umount()
564 if (!list_empty(&child->mnt_umounting)) { in propagate_umount()
574 } else if (child->mnt.mnt_flags & MNT_UMOUNT) { in propagate_umount()
581 list_add_tail(&child->mnt_umounting, &visited); in propagate_umount()
586 while (__propagate_umount(child, in propagate_umount()
589 child = child->mnt_parent; in propagate_umount()
590 if (list_empty(&child->mnt_umounting)) in propagate_umount()