io_uring: further deduplicate file slot selection
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:11 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:42:44 +0000 (07:42 -0600)
commit87c6cf0a58f38329741c93fe3546afaadb8794bd
treef0c598c31fe58b05bdc21686447351750f0e5ed1
parent832cc913ee21fae445f1050acefde6f3a1e0b794
io_uring: further deduplicate file slot selection

io_fixed_file_slot() and io_file_from_index() behave pretty similarly,
DRY and call one from another.

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