Lines Matching defs:child

226 	struct mount *child;
260 child = copy_tree(last_source, last_source->mnt.mnt_root, type);
261 if (IS_ERR(child))
262 return PTR_ERR(child);
264 mnt_set_mountpoint(m, dest_mp, child);
269 last_source = child;
270 hlist_add_head(&child->mnt_hash, list);
271 return count_mounts(m->mnt_ns, child);
337 struct mount *child;
342 child = list_first_entry(&mnt->mnt_mounts, struct mount, mnt_child);
343 if (child->mnt_mountpoint != mnt->mnt.mnt_root)
346 return child;
409 struct mount *m, *child, *topper;
426 child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint);
427 if (!child)
430 /* Is there exactly one mount on the child that covers
433 topper = find_topper(child);
436 else if (!list_empty(&child->mnt_mounts))
439 if (do_refcount_check(child, count))
453 struct mount *m, *child;
459 child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint);
460 if (child)
461 child->mnt.mnt_flags &= ~MNT_LOCKED;
483 struct mount *child;
495 list_for_each_entry(child, &mnt->mnt_mounts, mnt_child) {
496 if (child->mnt_mountpoint == mnt->mnt.mnt_root)
498 if (!list_empty(&child->mnt_umounting) && IS_MNT_MARKED(child))
500 /* Found a mounted child */
522 struct mount *mnt, *child, *tmp;
524 list_for_each_entry_safe(child, tmp, &mnt->mnt_mounts, mnt_child) {
526 if (child->mnt_mountpoint == mnt->mnt.mnt_root)
527 list_move_tail(&child->mnt_umounting, to_restore);
529 umount_one(child, to_umount);
597 struct mount *child = __lookup_mnt(&m->mnt,
599 if (!child)
602 if (!list_empty(&child->mnt_umounting)) {
604 * If the child has already been visited it is
612 } else if (child->mnt.mnt_flags & MNT_UMOUNT) {
619 list_add_tail(&child->mnt_umounting, &visited);
623 /* Check the child and parents while progress is made */
624 while (__propagate_umount(child,
627 child = child->mnt_parent;
628 if (list_empty(&child->mnt_umounting))