io_uring: add basic fixed file allocator
authorJens Axboe <axboe@kernel.dk>
Sat, 7 May 2022 20:20:40 +0000 (14:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 May 2022 12:28:40 +0000 (06:28 -0600)
commitb70b8e3331d8134ab993368a6e0eb18c1acb1b1d
tree80e856b9353720c33624fbcaa09ab1143d4e21d3
parentd78bd8adfcbc55b9dc01e9034a55b2a61a2124dc
io_uring: add basic fixed file allocator

Applications currently always pick where they want fixed files to go.
In preparation for allowing these types of commands with multishot
support, add a basic allocator in the fixed file table.

Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c