Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+6 -5
-5
include/linux/io_uring_types.h
··· 55 55 int cancel_seq; 56 56 }; 57 57 58 - struct io_fixed_file { 59 - /* file * with additional FFS_* flags */ 60 - unsigned long file_ptr; 61 - }; 62 - 63 58 struct io_file_table { 64 59 struct io_fixed_file *files; 65 60 unsigned long *bitmap;
+1
io_uring/filetable.h
··· 4 4 5 5 #include <linux/file.h> 6 6 #include <linux/io_uring_types.h> 7 + #include "rsrc.h" 7 8 8 9 bool io_alloc_file_tables(struct io_file_table *table, unsigned nr_files); 9 10 void io_free_file_tables(struct io_file_table *table);
+5
io_uring/rsrc.h
··· 40 40 struct io_rsrc_put item; 41 41 }; 42 42 43 + struct io_fixed_file { 44 + /* file * with additional FFS_* flags */ 45 + unsigned long file_ptr; 46 + }; 47 + 43 48 struct io_mapped_ubuf { 44 49 u64 ubuf; 45 50 unsigned int len;