summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-10-25 08:54:28 -0600
committerJens Axboe <axboe@kernel.dk>2024-10-29 13:43:28 -0600
commitff1256b8f3c45f222bce19fbfc1e1bc498b31d03 (patch)
treeba718e262354bd5a82cee947557ab9f35791ea8a /io_uring
parenta85f31052bce52111b4e9d5a536003481d0421d0 (diff)
downloadlwn-ff1256b8f3c45f222bce19fbfc1e1bc498b31d03.tar.gz
lwn-ff1256b8f3c45f222bce19fbfc1e1bc498b31d03.zip
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>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/filetable.h1
-rw-r--r--io_uring/rsrc.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/io_uring/filetable.h b/io_uring/filetable.h
index b2435c4dca1f..c027ed4ad68d 100644
--- a/io_uring/filetable.h
+++ b/io_uring/filetable.h
@@ -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);
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h
index c50d4be4aa6d..e072fb3ee351 100644
--- a/io_uring/rsrc.h
+++ b/io_uring/rsrc.h
@@ -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;