io_uring: support for larger fixed file sets
authorJens Axboe <axboe@kernel.dk>
Sat, 26 Oct 2019 13:20:21 +0000 (07:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2019 18:43:06 +0000 (12:43 -0600)
commit65e19f54d29cd8559ce60cfd0d751bef7afbdc5c
treecdea7439c2094118299b06e6fc21eca9402895a6
parentb7620121dc04e44ce654297050f9eaf39d414a34
io_uring: support for larger fixed file sets

There's been a few requests for supporting more fixed files than 1024.
This isn't really tricky to do, we just need to split up the file table
into multiple tables and index appropriately. As we do so, reduce the
max single file table to 512. This enables us to do single page allocs
always for the tables, which is an improvement over the situation prior.

This patch adds support for up to 64K files, which should be enough for
everyone.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c