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>
Thu, 25 Mar 2021 16:24:16 +0000 (10:24 -0600)
commite6813419d4fb28f77da99884b75211f55fdf000b
tree1b6d913c76ccc5af53b87bdda5ff678687828ee9
parent727a6b15224c35eef441f1d14bd1ae0e5593eb63
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