io_uring: use io_file_from_index in __io_sync_cancel
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Jun 2023 11:32:33 +0000 (13:32 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Jun 2023 15:36:22 +0000 (09:36 -0600)
commit60a666f097a8d722a3907925d21e363add289c8c
tree71f156959d34119fb3d2894866185ccd493d6445
parent8487f083c6ff6e02b2ec14f22ef2b0079a1b6425
io_uring: use io_file_from_index in __io_sync_cancel

Use io_file_from_index instead of open coding it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230620113235.920399-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/cancel.c