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, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commitdc2a6e9aa9c349d76c318d22bbe26006fda1ce97
treeeeecdb8b894d0222e52497ba71717eafbe518911
parentbf6182b6d46e28c3e59b9c0d6097b379cae56b94
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