io_uring: replace find_next() out param with ret
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 29 Jun 2020 10:13:00 +0000 (13:13 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 14:39:57 +0000 (08:39 -0600)
commit9b5f7bd93272689ec8dc2cfd40a812265c23414e
tree77f109b020cbd66d91af4b6e0a97a934ee1a004a
parent7c86ffeeed303187f266ed17bd87a9b375955709
io_uring: replace find_next() out param with ret

Generally, it's better to return a value directly than having out
parameter. It's cleaner and saves from some kinds of ugly bugs.
May also be faster.

Return next request from io_req_find_next() and friends directly
instead of passing out parameter.

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