]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9ff930c7b5594997be270765b9c21ee6b261dc4
tree77f109b020cbd66d91af4b6e0a97a934ee1a004a
parentc43d89946812d3b2e7e7c83618a4aa3d43d4c80d
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