Lines Matching refs:old_path
2269 static struct mount *__do_loopback(struct path *old_path, int recurse) in __do_loopback() argument
2271 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); in __do_loopback()
2276 if (!check_mnt(old) && old_path->dentry->d_op != &ns_dentry_operations) in __do_loopback()
2279 if (!recurse && has_locked_children(old, old_path->dentry)) in __do_loopback()
2283 mnt = copy_tree(old, old_path->dentry, CL_COPY_MNT_NS_FILE); in __do_loopback()
2285 mnt = clone_mnt(old, old_path->dentry, 0); in __do_loopback()
2299 struct path old_path; in do_loopback() local
2305 err = kern_path(old_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in do_loopback()
2310 if (mnt_ns_loop(old_path.dentry)) in do_loopback()
2323 mnt = __do_loopback(&old_path, recurse); in do_loopback()
2338 path_put(&old_path); in do_loopback()
2628 static int do_move_mount(struct path *old_path, struct path *new_path) in do_move_mount() argument
2642 old = real_mount(old_path->mnt); in do_move_mount()
2665 if (old_path->dentry != old_path->mnt->mnt_root) in do_move_mount()
2669 d_is_dir(old_path->dentry)) in do_move_mount()
2712 struct path old_path; in do_move_mount_old() local
2718 err = kern_path(old_name, LOOKUP_FOLLOW, &old_path); in do_move_mount_old()
2722 err = do_move_mount(&old_path, path); in do_move_mount_old()
2723 path_put(&old_path); in do_move_mount_old()