]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use labeled array init in io_op_defs
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 18 Jan 2020 18:35:38 +0000 (21:35 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jan 2020 00:04:07 +0000 (17:04 -0700)
commit5d51f9a7a21c3743c2255c00394973c984dc51ed
tree608fae52e14e8ab84fe6e745dcb7d391ba8a13d0
parent7531304774540d66c375c8713f86f658cfc91105
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