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>
Thu, 27 Feb 2020 21:21:01 +0000 (14:21 -0700)
commit52b31bc9aabca8c3ba023ff60cf701c0567b1267
tree2e007c7ac2dab6f25cfd3c28bffa926ccaa490dc
parent403c60931e317562c422774cb9f8b5ddbc7baf08
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