Home
last modified time | relevance | path

Searched refs:oldpath (Results 1 – 5 of 5) sorted by relevance

/linux/io_uring/
H A Dfs.c22 struct filename *oldpath; member
45 struct filename *oldpath; member
66 ren->oldpath = getname(oldf); in io_renameat_prep()
67 if (IS_ERR(ren->oldpath)) in io_renameat_prep()
68 return PTR_ERR(ren->oldpath); in io_renameat_prep()
72 putname(ren->oldpath); in io_renameat_prep()
88 ret = do_renameat2(ren->old_dfd, ren->oldpath, ren->new_dfd, in io_renameat()
100 putname(ren->oldpath); in io_renameat_cleanup()
201 const char __user *oldpath, *newpath; in io_symlinkat_prep() local
209 oldpath in io_symlinkat_prep()
[all...]
/linux/tools/testing/selftests/openat2/
H A Dhelpers.c39 int sys_renameat2(int olddirfd, const char *oldpath, in sys_renameat2() argument
42 int ret = syscall(__NR_renameat2, olddirfd, oldpath, in sys_renameat2()
H A Dhelpers.h99 int sys_renameat2(int olddirfd, const char *oldpath,
/linux/fs/overlayfs/
H A Dcopy_up.c75 int ovl_copy_xattr(struct super_block *sb, const struct path *oldpath, struct dentry *new) in ovl_copy_xattr() argument
77 struct dentry *old = oldpath->dentry; in ovl_copy_xattr()
125 error = ovl_copy_acl(OVL_FS(sb), oldpath, new, name); in ovl_copy_xattr()
133 size = ovl_do_getxattr(oldpath, name, value, value_size); in ovl_copy_xattr()
135 size = ovl_do_getxattr(oldpath, name, NULL, 0); in ovl_copy_xattr()
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c48 int renameat2(int olddirfd, const char *oldpath, int newdirfd, in renameat2() argument
51 return syscall(__NR_renameat2, olddirfd, oldpath, newdirfd, newpath, in renameat2()
2256 static int test_rename(const char *const oldpath, const char *const newpath) in test_rename() argument
2258 if (rename(oldpath, newpath)) in test_rename()
2263 static int test_exchange(const char *const oldpath, const char *const newpath) in test_exchange() argument
2265 if (renameat2(AT_FDCWD, oldpath, AT_FDCWD, newpath, RENAME_EXCHANGE)) in test_exchange()
2270 static int test_renameat(int olddirfd, const char *oldpath, int newdirfd, in test_renameat() argument
2273 if (renameat2(olddirfd, oldpath, newdirfd, newpath, 0)) in test_renameat()
2278 static int test_exchangeat(int olddirfd, const char *oldpath, int newdirfd, in test_exchangeat() argument
2281 if (renameat2(olddirfd, oldpath, newdirfd, newpath, RENAME_EXCHANGE)) in test_exchangeat()