io_uring: unite fill_cqe and the 32B version
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Jun 2022 10:23:03 +0000 (11:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jun 2022 11:06:09 +0000 (05:06 -0600)
commitf43de1f88841d59f27f761219b6550bd6ce3dcc1
treef78022cb0f70f79154cee0ba1438476c0434adf5
parent91ef75a7db0d0855284b78d60d3fcec5c353ec5a
io_uring: unite fill_cqe and the 32B version

We want just one function that will handle both normal cqes and 32B
cqes. Combine __io_fill_cqe_req() and __io_fill_cqe_req32(). It's still
not entirely correct yet, but saves us from cases when we fill an CQE of
a wrong size.

Fixes: 76c68fbf1a1f9 ("io_uring: enable CQE32")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8085c5b2f74141520f60decd45334f87e389b718.1655287457.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c