Lines Matching refs:child
212 struct mount *child; in propagate_one() local
249 child = copy_tree(last_source, last_source->mnt.mnt_root, type); in propagate_one()
250 if (IS_ERR(child)) in propagate_one()
251 return PTR_ERR(child); in propagate_one()
252 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_one()
253 mnt_set_mountpoint(m, mp, child); in propagate_one()
255 last_source = child; in propagate_one()
261 hlist_add_head(&child->mnt_hash, list); in propagate_one()
347 struct mount *m, *child; in propagate_mount_busy() local
364 child = __lookup_mnt_last(&m->mnt, mnt->mnt_mountpoint); in propagate_mount_busy()
365 if (child && list_empty(&child->mnt_mounts) && in propagate_mount_busy()
366 (ret = do_refcount_check(child, 1))) in propagate_mount_busy()
380 struct mount *m, *child; in propagate_mount_unlock() local
386 child = __lookup_mnt_last(&m->mnt, mnt->mnt_mountpoint); in propagate_mount_unlock()
387 if (child) in propagate_mount_unlock()
388 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_mount_unlock()
404 struct mount *child = __lookup_mnt_last(&m->mnt, in mark_umount_candidates() local
406 if (child && (!IS_MNT_LOCKED(child) || IS_MNT_MARKED(m))) { in mark_umount_candidates()
407 SET_MNT_MARK(child); in mark_umount_candidates()
426 struct mount *child = __lookup_mnt_last(&m->mnt, in __propagate_umount() local
432 if (!child || !IS_MNT_MARKED(child)) in __propagate_umount()
434 CLEAR_MNT_MARK(child); in __propagate_umount()
435 if (list_empty(&child->mnt_mounts)) { in __propagate_umount()
436 list_del_init(&child->mnt_child); in __propagate_umount()
437 child->mnt.mnt_flags |= MNT_UMOUNT; in __propagate_umount()
438 list_move_tail(&child->mnt_list, &mnt->mnt_list); in __propagate_umount()