/fs/ |
D | init.c | 169 struct path old_path, new_path; in init_link() local 173 error = kern_path(oldname, 0, &old_path); in init_link() 183 if (old_path.mnt != new_path.mnt) in init_link() 186 error = may_linkat(mnt_userns, &old_path); in init_link() 189 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link() 192 error = vfs_link(old_path.dentry, mnt_userns, new_path.dentry->d_inode, in init_link() 197 path_put(&old_path); in init_link()
|
D | namespace.c | 2348 static struct mount *__do_loopback(struct path *old_path, int recurse) in __do_loopback() argument 2350 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); in __do_loopback() 2355 if (!check_mnt(old) && old_path->dentry->d_op != &ns_dentry_operations) in __do_loopback() 2358 if (!recurse && has_locked_children(old, old_path->dentry)) in __do_loopback() 2362 mnt = copy_tree(old, old_path->dentry, CL_COPY_MNT_NS_FILE); in __do_loopback() 2364 mnt = clone_mnt(old, old_path->dentry, 0); in __do_loopback() 2378 struct path old_path; in do_loopback() local 2384 err = kern_path(old_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in do_loopback() 2389 if (mnt_ns_loop(old_path.dentry)) in do_loopback() 2402 mnt = __do_loopback(&old_path, recurse); in do_loopback() [all …]
|
D | namei.c | 4586 struct path old_path, new_path; in do_linkat() local 4608 error = filename_lookup(olddfd, old, how, &old_path, NULL); in do_linkat() 4619 if (old_path.mnt != new_path.mnt) in do_linkat() 4622 error = may_linkat(mnt_userns, &old_path); in do_linkat() 4625 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat() 4628 error = vfs_link(old_path.dentry, mnt_userns, new_path.dentry->d_inode, in do_linkat() 4635 path_put(&old_path); in do_linkat() 4640 path_put(&old_path); in do_linkat() 4645 path_put(&old_path); in do_linkat() 4877 struct path old_path, new_path; in do_renameat2() local [all …]
|
/fs/vboxsf/ |
D | dir.c | 401 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local 407 old_path = vboxsf_path_from_dentry(sbi, old_dentry); in vboxsf_dir_rename() 408 if (IS_ERR(old_path)) in vboxsf_dir_rename() 409 return PTR_ERR(old_path); in vboxsf_dir_rename() 420 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename() 429 __putname(old_path); in vboxsf_dir_rename()
|
D | vboxsf_wrappers.c | 341 struct shfl_string *old_path, struct shfl_fsobjinfo *buf) in vboxsf_symlink() argument 352 parms.old_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink() 353 parms.old_path.u.pointer.size = shfl_string_buf_size(old_path); in vboxsf_symlink() 354 parms.old_path.u.pointer.u.linear_addr = (uintptr_t)old_path; in vboxsf_symlink()
|
D | vfsmod.h | 141 struct shfl_string *old_path, struct shfl_fsobjinfo *buf);
|
D | shfl_hostintf.h | 889 struct vmmdev_hgcm_function_parameter old_path; member
|
/fs/ocfs2/ |
D | ioctl.c | 848 const char __user *old_path; in ocfs2_ioctl() local 893 old_path = (const char __user *)(unsigned long)args.old_path; in ocfs2_ioctl() 897 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl() 960 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), in ocfs2_compat_ioctl()
|
D | ocfs2_ioctl.h | 55 __u64 old_path; member
|
D | refcounttree.c | 4424 struct path old_path, new_path; in ocfs2_reflink_ioctl() local 4430 error = user_path_at(AT_FDCWD, oldname, 0, &old_path); in ocfs2_reflink_ioctl() 4444 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl() 4449 error = ocfs2_vfs_reflink(old_path.dentry, in ocfs2_reflink_ioctl() 4455 path_put(&old_path); in ocfs2_reflink_ioctl()
|
/fs/ksmbd/ |
D | vfs.c | 678 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename() argument 682 struct dentry *old_child = old_path->dentry; in ksmbd_vfs_rename() 708 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename() 713 err = mnt_want_write(old_path->mnt); in ksmbd_vfs_rename() 763 rd.old_mnt_userns = mnt_user_ns(old_path->mnt), in ksmbd_vfs_rename() 780 mnt_drop_write(old_path->mnt); in ksmbd_vfs_rename()
|
D | vfs.h | 128 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path,
|
/fs/cifs/ |
D | cifsproto.h | 616 const char *old_path, in get_dfs_path() argument 620 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, in get_dfs_path()
|