Commit ff1256b8 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent a85f3105
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -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);
+5 −0
Original line number Diff line number Diff line
@@ -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;