io_uring: track fixed files with a bitmap
authorJens Axboe <axboe@kernel.dk>
Sat, 7 May 2022 15:56:13 +0000 (09:56 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 May 2022 12:28:29 +0000 (06:28 -0600)
commitd78bd8adfcbc55b9dc01e9034a55b2a61a2124dc
tree7bd4c6a2d87b9c24de621585e15214f5ae70215d
parent7ccba24d3bc084d891def1a6fea504e4cb327a8c
io_uring: track fixed files with a bitmap

In preparation for adding a basic allocator for direct descriptors,
add helpers that set/clear whether a file slot is used.

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