commit | ea64ec02b31d5b05ae94ac4d57e38f8a02117c76 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Feb 04 13:52:07 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Feb 04 08:05:46 2021 -0700 |
tree | 76563082ac8ad7c8f248a2a026efc02cb31127f8 | |
parent | 847595de1732a6e928f241929d24dde2e9ffaf15 [diff] |
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>