io_uring: add io_op_defs 'def' pointer in req init and issue
authorJens Axboe <axboe@kernel.dk>
Mon, 23 May 2022 22:53:15 +0000 (16:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 31 May 2022 08:50:02 +0000 (02:50 -0600)
commitfcde59feb1affb6d56aecadc3868df4631480da5
tree33369aef1aa17dae5282662317ab1fd335bf732a
parent54739cc6b4e12b8bf3802536634b8e896eb796b1
io_uring: add io_op_defs 'def' pointer in req init and issue

Define and set it when appropriate, and use it consistently in the
function rather than using io_op_defs[opcode].

Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c