OSDN Git Service

io_uring: correct fill events helpers types
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 4 Oct 2021 19:03:00 +0000 (20:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:55 +0000 (05:49 -0600)
commit54daa9b2d80ab35824464b35a99f716e1cdf2ccb
tree757de5633f4116fa1758a5f0b03f54c7423dfc25
parenteb6e6f0690c846f7de46181bab3954c12c96e11e
io_uring: correct fill events helpers types

CQE result is a 32-bit integer, so the functions generating CQEs are
better to accept not long but ints. Convert io_cqring_fill_event() and
other helpers.

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