io_uring: refactor io_resubmit_prep()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Jan 2021 13:32:35 +0000 (13:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 15:18:37 +0000 (08:18 -0700)
commitd314a8e7f425a7b865e0dc8d95312115994660f7
tree04fb70ae2ce053d6e227e5133924844bd2d152cb
parentf3ee5ddc412d631a01661a65413ea83f2b3f5cbe
io_uring: refactor io_resubmit_prep()

It's awkward to pass return a value into a function for it to return it
back. Check it at the caller site and clean up io_resubmit_prep() a bit.

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