Lines Matching defs:old_path
2973 static struct mount *__do_loopback(const struct path *old_path,
2976 struct mount *old = real_mount(old_path->mnt);
2981 if (!may_copy_tree(old_path))
2984 if (!recurse && __has_locked_children(old, old_path->dentry))
2988 return copy_tree(old, old_path->dentry, copy_flags);
2990 return clone_mnt(old, old_path->dentry, copy_flags);
2999 struct path old_path __free(path_put) = {};
3005 err = kern_path(old_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path);
3009 if (mnt_ns_loop(old_path.dentry))
3019 mnt = __do_loopback(&old_path, recurse, CL_COPY_MNT_NS_FILE);
3625 static int do_move_mount(const struct path *old_path,
3629 struct mount *old = real_mount(old_path->mnt);
3633 if (!path_mounted(old_path))
3636 if (d_is_dir(new_path->dentry) != d_is_dir(old_path->dentry))
3701 struct path old_path __free(path_put) = {};
3707 err = kern_path(old_name, LOOKUP_FOLLOW, &old_path);
3711 return do_move_mount(&old_path, path, 0);