aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorDmitry Kadashev <dkadashev@gmail.com>2021-07-08 13:34:46 +0700
committerJens Axboe <axboe@kernel.dk>2021-08-23 13:48:33 -0600
commit7a8721f84fcb3b2946a92380b6fc311e017ff02c (patch)
tree37f17666ed6ea3b678f7777f1d5e5abe3998ef8e /fs/namei.c
parentio_uring: add support for IORING_OP_MKDIRAT (diff)
downloadlinux-dev-7a8721f84fcb3b2946a92380b6fc311e017ff02c.tar.xz
linux-dev-7a8721f84fcb3b2946a92380b6fc311e017ff02c.zip
io_uring: add support for IORING_OP_SYMLINKAT
IORING_OP_SYMLINKAT behaves like symlinkat(2) and takes the same flags and arguments. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Suggested-by: Christian Brauner <christian.brauner@ubuntu.com> Link: https://lore.kernel.org/io-uring/20210514145259.wtl4xcsp52woi6ab@wittgenstein/ Signed-off-by: Dmitry Kadashev <dkadashev@gmail.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Link: https://lore.kernel.org/r/20210708063447.3556403-11-dkadashev@gmail.com [axboe: add splice_fd_in check] Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index e2425c0a406e..803fc95b7658 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -4223,8 +4223,7 @@ int vfs_symlink(struct user_namespace *mnt_userns, struct inode *dir,
}
EXPORT_SYMBOL(vfs_symlink);
-static int do_symlinkat(struct filename *from, int newdfd,
- struct filename *to)
+int do_symlinkat(struct filename *from, int newdfd, struct filename *to)
{
int error;
struct dentry *dentry;