io_uring: add and use struct io_rw for read/writes
authorJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 15:45:55 +0000 (08:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 16:52:45 +0000 (09:52 -0700)
commit9adbd45d6d32ffc1a03f3c51d72cfc69ebfc2ddb
treeec6209a7e0524977572b48d8ab501d29556057e2
parentd55e5f5b70dd6214ef81fb2313121b72a7dd2200
io_uring: add and use struct io_rw for read/writes

Put the kiocb in struct io_rw, and add the addr/len for the request as
well. Use the kiocb->private field for the buffer index for fixed reads
and writes.

Any use of kiocb->ki_filp is flipped to req->file. It's the same thing,
and less confusing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c