io_uring: use labeled array init in io_op_defs
commit0463b6c58e557118d602b2f225fa3bbe9b6f3560
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 18 Jan 2020 18:35:38 +0000 (18 21:35 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jan 2020 00:04:07 +0000 (20 17:04 -0700)
tree608fae52e14e8ab84fe6e745dcb7d391ba8a13d0
parent6b47ee6ecab142f938a40bf3b297abac74218ee2
io_uring: use labeled array init in io_op_defs

Don't rely on implicit ordering of IORING_OP_ and explicitly place them
at a right place in io_op_defs. Now former comments are now a part of
the code and won't ever outdate.

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