/fs/ |
D | init.c | 169 struct path old_path, new_path; in init_link() local 177 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link() 183 if (old_path.mnt != new_path.mnt) in init_link() 185 mnt_userns = mnt_user_ns(new_path.mnt); 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() 195 done_path_create(&new_path, new_dentry); in init_link()
|
D | namei.c | 4586 struct path old_path, new_path; in do_linkat() local 4612 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat() 4619 if (old_path.mnt != new_path.mnt) in do_linkat() 4621 mnt_userns = mnt_user_ns(new_path.mnt); 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() 4631 done_path_create(&new_path, new_dentry); in do_linkat() 4877 struct path old_path, new_path; in do_renameat2() local 4901 error = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last, in do_renameat2() 4907 if (old_path.mnt != new_path.mnt) in do_renameat2() [all …]
|
D | namespace.c | 2781 static int do_move_mount(struct path *old_path, struct path *new_path) in do_move_mount() argument 2791 mp = lock_mount(new_path); in do_move_mount() 2796 p = real_mount(new_path->mnt); in do_move_mount() 2821 if (d_is_dir(new_path->dentry) != in do_move_mount() 2842 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, in do_move_mount()
|
/fs/vboxsf/ |
D | dir.c | 401 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local 411 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename() 412 if (IS_ERR(new_path)) { in vboxsf_dir_rename() 413 err = PTR_ERR(new_path); in vboxsf_dir_rename() 420 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename() 427 __putname(new_path); in vboxsf_dir_rename()
|
D | vboxsf_wrappers.c | 340 int vboxsf_symlink(u32 root, struct shfl_string *new_path, in vboxsf_symlink() argument 348 parms.new_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink() 349 parms.new_path.u.pointer.size = shfl_string_buf_size(new_path); in vboxsf_symlink() 350 parms.new_path.u.pointer.u.linear_addr = (uintptr_t)new_path; in vboxsf_symlink()
|
D | vfsmod.h | 140 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
|
D | shfl_hostintf.h | 883 struct vmmdev_hgcm_function_parameter new_path; member
|
/fs/ksmbd/ |
D | vfs.c | 683 struct path new_path; in ksmbd_vfs_rename() local 703 &new_path, &new_last, &new_type, in ksmbd_vfs_rename() 708 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename() 717 trap = lock_rename_child(old_child, new_path.dentry); in ksmbd_vfs_rename() 736 new_dentry = lookup_one_qstr_excl(&new_last, new_path.dentry, in ksmbd_vfs_rename() 766 rd.new_mnt_userns = mnt_user_ns(new_path.mnt), in ksmbd_vfs_rename() 767 rd.new_dir = new_path.dentry->d_inode, in ksmbd_vfs_rename() 779 unlock_rename(old_parent, new_path.dentry); in ksmbd_vfs_rename() 782 path_put(&new_path); in ksmbd_vfs_rename()
|
/fs/ocfs2/ |
D | ioctl.c | 849 const char __user *new_path; in ocfs2_ioctl() local 894 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl() 897 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl() 961 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
|
D | ocfs2_ioctl.h | 56 __u64 new_path; member
|
D | refcounttree.c | 4424 struct path old_path, new_path; in ocfs2_reflink_ioctl() local 4436 new_dentry = user_path_create(AT_FDCWD, newname, &new_path, 0); in ocfs2_reflink_ioctl() 4444 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl() 4450 d_inode(new_path.dentry), in ocfs2_reflink_ioctl() 4453 done_path_create(&new_path, new_dentry); in ocfs2_reflink_ioctl()
|
/fs/proc/ |
D | proc_sysctl.c | 1545 char *new_path, *pos; in __register_sysctl_paths() local 1547 pos = new_path = kmalloc(PATH_MAX, GFP_KERNEL); in __register_sysctl_paths() 1548 if (!new_path) in __register_sysctl_paths() 1553 pos = append_path(new_path, pos, component->procname); in __register_sysctl_paths() 1558 pos = append_path(new_path, pos, table->procname); in __register_sysctl_paths() 1564 header = __register_sysctl_table(set, new_path, table); in __register_sysctl_paths() 1577 if (register_leaf_sysctl_tables(new_path, pos, &subheader, in __register_sysctl_paths() 1583 kfree(new_path); in __register_sysctl_paths()
|
/fs/exfat/ |
D | namei.c | 1190 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local 1199 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename() 1255 ret = exfat_resolve_path(new_parent_inode, new_path, &newdir, in __exfat_rename()
|
/fs/btrfs/ |
D | send.c | 3797 struct fs_path *new_path; in update_ref_path() local 3803 new_path = fs_path_alloc(); in update_ref_path() 3804 if (!new_path) in update_ref_path() 3807 ret = get_cur_path(sctx, ref->dir, ref->dir_gen, new_path); in update_ref_path() 3809 fs_path_free(new_path); in update_ref_path() 3812 ret = fs_path_add(new_path, ref->name, ref->name_len); in update_ref_path() 3814 fs_path_free(new_path); in update_ref_path() 3819 set_ref_path(ref, new_path); in update_ref_path()
|