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>
Wed, 10 Mar 2021 14:31:36 +0000 (07:31 -0700)
commitf6fab9684320076cf830aae7e0e5feaa5d740f5d
tree94e1b82ef25c2e65aaae4385576b0d8f81b14b7a
parente6441afe0945bbee17f4390439a65d6685d8819e
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