]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: deduplicate file table slot calculation
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 4 Feb 2021 13:52:07 +0000 (13:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Feb 2021 15:05:46 +0000 (08:05 -0700)
commit9151ff5f3aca8ac0ef0920535a27cd4e2c641c17
tree76563082ac8ad7c8f248a2a026efc02cb31127f8
parent5053669732ef126a46d5f5b4f73dff90bf6a3965
io_uring: deduplicate file table slot calculation

Extract a helper io_fixed_file_slot() returning a place in our fixed
files table, so we don't hand-code it three times in the code.

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