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>
Thu, 25 Mar 2021 16:24:16 +0000 (10:24 -0600)
commita0cdea135bf5980aa0227337abfb06a29e49068a
tree86001635bedc5b895faf9d0e1efd19fb62e87d73
parent65c139981e8a830f9ad3dcc56e91d50729dd39f0
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