io_uring: clean up req->result setting by rw
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Jun 2020 09:52:35 +0000 (12:52 +0300)
committerJens Axboe <axboe@kernel.dk>
Sun, 28 Jun 2020 14:10:17 +0000 (08:10 -0600)
commit6795c5aba247653f99d1f336ff496dd74659b322
treea6400f0a93b5cee55e6e1419c13f58344b10eaf0
parent9b0d911acce00b67f7e7336f838b732de7d917d6
io_uring: clean up req->result setting by rw

Assign req->result to io_size early in io_{read,write}(), it's enough
and makes it more straightforward.

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