Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 14 of 14) sorted by relevance

/fs/
A Dinit.c168 struct path old_path, new_path; in init_link() local
172 error = kern_path(oldname, 0, &old_path); in init_link()
182 if (old_path.mnt != new_path.mnt) in init_link()
185 error = may_linkat(idmap, &old_path); in init_link()
188 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
191 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in init_link()
196 path_put(&old_path); in init_link()
A Dnamei.c4883 struct path old_path, new_path; in do_linkat() local
4915 if (old_path.mnt != new_path.mnt) in do_linkat()
4918 error = may_linkat(idmap, &old_path); in do_linkat()
4931 path_put(&old_path); in do_linkat()
4936 path_put(&old_path); in do_linkat()
4941 path_put(&old_path); in do_linkat()
5174 struct path old_path, new_path; in do_renameat2() local
5207 if (old_path.mnt != new_path.mnt) in do_renameat2()
5270 rd.old_parent = old_path.dentry; in do_renameat2()
5291 mnt_drop_write(old_path.mnt); in do_renameat2()
[all …]
A Dnamespace.c3001 if (!may_copy_tree(old_path)) in __do_loopback()
3019 struct path old_path; in do_loopback() local
3030 if (mnt_ns_loop(old_path.dentry)) in do_loopback()
3041 mnt = __do_loopback(&old_path, recurse); in do_loopback()
3056 path_put(&old_path); in do_loopback()
3595 old = real_mount(old_path->mnt); in do_move_mount()
3634 if (!path_mounted(old_path)) in do_move_mount()
3638 d_is_dir(old_path->dentry)) in do_move_mount()
3670 struct path old_path; in do_move_mount_old() local
3680 err = do_move_mount(&old_path, path, 0); in do_move_mount_old()
[all …]
/fs/vboxsf/
A Ddir.c403 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
409 old_path = vboxsf_path_from_dentry(sbi, old_dentry); in vboxsf_dir_rename()
410 if (IS_ERR(old_path)) in vboxsf_dir_rename()
411 return PTR_ERR(old_path); in vboxsf_dir_rename()
422 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
431 __putname(old_path); in vboxsf_dir_rename()
A Dvboxsf_wrappers.c341 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()
A Dvfsmod.h141 struct shfl_string *old_path, struct shfl_fsobjinfo *buf);
A Dshfl_hostintf.h889 struct vmmdev_hgcm_function_parameter old_path; member
/fs/ocfs2/
A Dioctl.c898 const char __user *old_path; in ocfs2_ioctl() local
904 old_path = (const char __user *)(unsigned long)args.old_path; in ocfs2_ioctl()
908 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
975 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), in ocfs2_compat_ioctl()
A Docfs2_ioctl.h55 __u64 old_path; member
A Drefcounttree.c4409 struct path old_path, new_path; in ocfs2_reflink_ioctl() local
4415 error = user_path_at(AT_FDCWD, oldname, 0, &old_path); in ocfs2_reflink_ioctl()
4429 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl()
4434 error = ocfs2_vfs_reflink(old_path.dentry, in ocfs2_reflink_ioctl()
4440 path_put(&old_path); in ocfs2_reflink_ioctl()
/fs/smb/server/
A Dvfs.c680 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename() argument
684 struct dentry *old_child = old_path->dentry; in ksmbd_vfs_rename()
719 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename()
724 err = mnt_want_write(old_path->mnt); in ksmbd_vfs_rename()
773 rd.old_mnt_idmap = mnt_idmap(old_path->mnt), in ksmbd_vfs_rename()
791 mnt_drop_write(old_path->mnt); in ksmbd_vfs_rename()
A Dvfs.h90 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path,
/fs/smb/client/
A Dcifsproto.h702 const char *old_path, in get_dfs_path() argument
706 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, in get_dfs_path()
/fs/btrfs/
A Dvolumes.c742 char *old_path = NULL; in is_same_device() local
749 old_path = kzalloc(PATH_MAX, GFP_NOFS); in is_same_device()
750 if (!old_path) in is_same_device()
754 ret = strscpy(old_path, rcu_dereference(device->name), PATH_MAX); in is_same_device()
759 ret = kern_path(old_path, LOOKUP_FOLLOW, &old); in is_same_device()
768 kfree(old_path); in is_same_device()

Completed in 60 milliseconds