io_uring: move remaining file table manipulation to filetable.c
[linux-block.git] / io_uring / filetable.h
index 6e1675f406b729cef634a0b986a8e61b5aff637d..c404360f709053e75c8ff377b361a8a96aab489b 100644 (file)
@@ -3,6 +3,7 @@
 #define IOU_FILE_TABLE_H
 
 struct io_ring_ctx;
+struct io_kiocb;
 
 /*
  * FFS_SCM is only available on 64-bit archs, for 32-bit we just define it as 0
@@ -34,7 +35,9 @@ struct io_file_table {
 
 bool io_alloc_file_tables(struct io_file_table *table, unsigned nr_files);
 void io_free_file_tables(struct io_file_table *table);
-int io_file_bitmap_get(struct io_ring_ctx *ctx);
+
+int io_fixed_fd_install(struct io_kiocb *req, unsigned int issue_flags,
+                       struct file *file, unsigned int file_slot);
 
 unsigned int io_file_get_flags(struct file *file);