io_uring/rsrc: move struct io_fixed_file to rsrc.h header
authorJens Axboe <axboe@kernel.dk>
Fri, 25 Oct 2024 14:54:28 +0000 (08:54 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2024 19:43:28 +0000 (13:43 -0600)
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>
include/linux/io_uring_types.h
io_uring/filetable.h
io_uring/rsrc.h

index 2f12828..d4ba4ae 100644 (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;
index b2435c4..c027ed4 100644 (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);
index c50d4be..e072fb3 100644 (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;