io_uring: refactor io_submit_flush_completions()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 17 Jun 2021 17:14:00 +0000 (18:14 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Jun 2021 15:22:02 +0000 (09:22 -0600)
commit2a2758f26df519fab011f49d53440382dda8e1a5
treeef0d270db9529e6edfd4db618d70cabe4c202ef7
parente6ab8991c5d0b0deae0961dc22c0edd1dee328f5
io_uring: refactor io_submit_flush_completions()

struct io_comp_state is always contained in struct io_ring_ctx, don't
pass them into io_submit_flush_completions() separately, it makes the
interface cleaner and simplifies it for the compiler.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/44d6ca57003a82484338e95197024dbd65a1b376.1623949695.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c