Skip to content

Commit ff1256b

Browse files
committed
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>
1 parent a85f310 commit ff1256b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

include/linux/io_uring_types.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ struct io_wq_work {
5555
int cancel_seq;
5656
};
5757

58-
struct io_fixed_file {
59-
/* file * with additional FFS_* flags */
60-
unsigned long file_ptr;
61-
};
62-
6358
struct io_file_table {
6459
struct io_fixed_file *files;
6560
unsigned long *bitmap;

io_uring/filetable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <linux/file.h>
66
#include <linux/io_uring_types.h>
7+
#include "rsrc.h"
78

89
bool io_alloc_file_tables(struct io_file_table *table, unsigned nr_files);
910
void io_free_file_tables(struct io_file_table *table);

io_uring/rsrc.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ struct io_rsrc_node {
4040
struct io_rsrc_put item;
4141
};
4242

43+
struct io_fixed_file {
44+
/* file * with additional FFS_* flags */
45+
unsigned long file_ptr;
46+
};
47+
4348
struct io_mapped_ubuf {
4449
u64 ubuf;
4550
unsigned int len;

0 commit comments

Comments
 (0)