Lines Matching refs:child

227 	struct mount *child;
261 child = copy_tree(last_source, last_source->mnt.mnt_root, type);
262 if (IS_ERR(child))
263 return PTR_ERR(child);
265 mnt_set_mountpoint(m, mp, child);
270 last_source = child;
271 hlist_add_head(&child->mnt_hash, list);
272 return count_mounts(m->mnt_ns, child);
339 struct mount *child;
344 child = list_first_entry(&mnt->mnt_mounts, struct mount, mnt_child);
345 if (child->mnt_mountpoint != mnt->mnt.mnt_root)
348 return child;
371 struct mount *m, *child, *topper;
388 child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint);
389 if (!child)
392 /* Is there exactly one mount on the child that covers
395 topper = find_topper(child);
398 else if (!list_empty(&child->mnt_mounts))
401 if (do_refcount_check(child, count))
415 struct mount *m, *child;
421 child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint);
422 if (child)
423 child->mnt.mnt_flags &= ~MNT_LOCKED;
445 struct mount *child;
457 list_for_each_entry(child, &mnt->mnt_mounts, mnt_child) {
458 if (child->mnt_mountpoint == mnt->mnt.mnt_root)
460 if (!list_empty(&child->mnt_umounting) && IS_MNT_MARKED(child))
462 /* Found a mounted child */
484 struct mount *mnt, *child, *tmp;
486 list_for_each_entry_safe(child, tmp, &mnt->mnt_mounts, mnt_child) {
488 if (child->mnt_mountpoint == mnt->mnt.mnt_root)
489 list_move_tail(&child->mnt_umounting, to_restore);
491 umount_one(child, to_umount);
559 struct mount *child = __lookup_mnt(&m->mnt,
561 if (!child)
564 if (!list_empty(&child->mnt_umounting)) {
566 * If the child has already been visited it is
574 } else if (child->mnt.mnt_flags & MNT_UMOUNT) {
581 list_add_tail(&child->mnt_umounting, &visited);
585 /* Check the child and parents while progress is made */
586 while (__propagate_umount(child,
589 child = child->mnt_parent;
590 if (list_empty(&child->mnt_umounting))