aboutsummaryrefslogtreecommitdiffstats
path: root/io_uring/filetable.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-06-13 04:42:56 -0600
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:16 -0600
commitf110ed8498afa6ff8e9a8c08fb26880e02117616 (patch)
tree113cdc59771c97795a6782c18bf6c5dba0deeceb /io_uring/filetable.h
parent8fcf4c48f44bd7b1b75db139f56ff1ad6477379e (diff)
downloadlinux-f110ed8498afa6ff8e9a8c08fb26880e02117616.tar.gz
io_uring: split out fixed file installation and removal
Put it with the filetable code, which is where it belongs. While doing so, have the helpers take a ctx rather than an io_kiocb. It doesn't make sense to use a request, as it's not an operation on the request itself. It applies to the ring itself. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/filetable.h')
-rw-r--r--io_uring/filetable.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_uring/filetable.h b/io_uring/filetable.h
index fb5a274c08ffc..79eb50c1980e8 100644
--- a/io_uring/filetable.h
+++ b/io_uring/filetable.h
@@ -29,6 +29,9 @@ void io_free_file_tables(struct io_file_table *table);
int io_fixed_fd_install(struct io_kiocb *req, unsigned int issue_flags,
struct file *file, unsigned int file_slot);
+int __io_fixed_fd_install(struct io_ring_ctx *ctx, struct file *file,
+ unsigned int file_slot);
+int io_fixed_fd_remove(struct io_ring_ctx *ctx, unsigned int offset);
unsigned int io_file_get_flags(struct file *file);