io_uring/rsrc: move struct io_fixed_file to rsrc.h header

There's no need for this internal structure to be visible, move it to
the private rsrc.h header instead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe 2024-10-25 08:54:28 -06:00
parent a85f31052b
commit ff1256b8f3
3 changed files with 6 additions and 5 deletions

View File

@ -55,11 +55,6 @@ struct io_wq_work {
int cancel_seq;
};
struct io_fixed_file {
/* file * with additional FFS_* flags */
unsigned long file_ptr;
};
struct io_file_table {
struct io_fixed_file *files;
unsigned long *bitmap;

View File

@ -4,6 +4,7 @@
#include <linux/file.h>
#include <linux/io_uring_types.h>
#include "rsrc.h"
bool io_alloc_file_tables(struct io_file_table *table, unsigned nr_files);
void io_free_file_tables(struct io_file_table *table);

View File

@ -40,6 +40,11 @@ struct io_rsrc_node {
struct io_rsrc_put item;
};
struct io_fixed_file {
/* file * with additional FFS_* flags */
unsigned long file_ptr;
};
struct io_mapped_ubuf {
u64 ubuf;
unsigned int len;