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>
Sun, 11 Apr 2021 23:41:58 +0000 (17:41 -0600)
commitdafecf19e25f9b864ce0f3b8bb12de2e3d5f6da6
treed58679038235e33e39d69fc7041442d1ac873533
parent2c4b8eb6435e615544b92acdcd4b25a85e83f300
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