Lines Matching refs:source_mnt
2234 * @source_mnt: mount tree to be attached
2235 * @top_mnt: mount that @source_mnt will be mounted on or mounted beneath
2236 * @dest_mp: the mountpoint @source_mnt will be mounted at
2237 * @flags: modify how @source_mnt is supposed to be attached
2296 * Return: If @source_mnt was successfully attached 0 is returned.
2299 static int attach_recursive_mnt(struct mount *source_mnt,
2317 smp = get_mountpoint(source_mnt->mnt.mnt_root);
2323 err = count_mounts(ns, source_mnt);
2334 err = invent_group_ids(source_mnt, true);
2337 err = propagate_mnt(dest_mnt, dest_mp, source_mnt, &tree_list);
2344 for (p = source_mnt; p; p = next_mnt(p, source_mnt))
2351 unhash_mnt(source_mnt);
2352 attach_mnt(source_mnt, top_mnt, dest_mp, beneath);
2353 touch_mnt_namespace(source_mnt->mnt_ns);
2355 if (source_mnt->mnt_ns) {
2357 list_del_init(&source_mnt->mnt_ns->list);
2360 mnt_set_mountpoint_beneath(source_mnt, top_mnt, smp);
2362 mnt_set_mountpoint(dest_mnt, dest_mp, source_mnt);
2363 commit_tree(source_mnt);
2391 cleanup_group_ids(source_mnt, NULL);