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>
Sun, 4 Apr 2021 21:27:17 +0000 (15:27 -0600)
commit91e7b35a841702c6c6590852ce873fbb57c48ace
tree38ef47a6008732fce05d9c7cc7d574371e7ab655
parent57bbd288b738281c5f4e322eb78f6b5b19f7f669
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