io_uring: use better types for cflags
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:15 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:42:44 +0000 (07:42 -0600)
commit92f7be35883ab51f54993a332ab3c0b714218c68
treeb253d7852f8653b67f106d59d6ef436d57e646a7
parentc17564d14eecbae099b0151227d6fe4d2fe7da3d
io_uring: use better types for cflags

__io_cqring_fill_event() takes cflags as long to squeeze it into u32 in
an CQE, awhile all users pass int or unsigned. Replace it with unsigned
int and store it as u32 in struct io_completion to match CQE.

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