io_uring: add splice(2) support
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 24 Feb 2020 08:32:45 +0000 (11:32 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Mar 2020 21:04:37 +0000 (14:04 -0700)
commit7d67af2c013402537385dae343a2d0f6a4cb3bfd
treeaff586f771a5ede4827c5741c0394bab59a5e104
parent8da11c19940ddbc22fc835bce3f361f4d2417fb0
io_uring: add splice(2) support

Add support for splice(2).

- output file is specified as sqe->fd, so it's handled by generic code
- hash_reg_file handled by generic code as well
- len is 32bit, but should be fine
- the fd_in is registered file, when SPLICE_F_FD_IN_FIXED is set, which
is a splice flag (i.e. sqe->splice_flags).

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h