]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add support for IORING_OP_LINKAT
authorDmitry Kadashev <dkadashev@gmail.com>
Thu, 8 Jul 2021 06:34:47 +0000 (13:34 +0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:48:52 +0000 (13:48 -0600)
commit033b820779cd0fc2284a6c042d36c181db4a621a
tree95877155ed02f3e753bc9347596d83e816b7c212
parent7e9a7e97c6d55f8437d1fcf26230f690ecce286f
io_uring: add support for IORING_OP_LINKAT

IORING_OP_LINKAT behaves like linkat(2) and takes the same flags and
arguments.

In some internal places 'hardlink' is used instead of 'link' to avoid
confusion with the SQE links. Name 'link' conflicts with the existing
'link' member of io_kiocb.

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-12-dkadashev@gmail.com
[axboe: add splice_fd_in check]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/internal.h
fs/io_uring.c
fs/namei.c
include/uapi/linux/io_uring.h