diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-10-28 08:35:05 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-02 15:45:30 -0600 |
commit | cb1717a7cd0fc8a063bd7fe3b4eb6fd81defb11c (patch) | |
tree | 866e11a7781ee58a09c6d219ecd06ac8d265d5cd /io_uring/filetable.h | |
parent | b54a14041ee6444692d95ff38c8b3d1af682aa17 (diff) |
io_uring/filetable: remove io_file_from_index() helper
It's only used in fdinfo, nothing really gained from having this helper.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/filetable.h')
-rw-r--r-- | io_uring/filetable.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/io_uring/filetable.h b/io_uring/filetable.h index 29edda0caa65..6c0c9642f6e9 100644 --- a/io_uring/filetable.h +++ b/io_uring/filetable.h @@ -49,16 +49,6 @@ static inline struct file *io_slot_file(struct io_rsrc_node *node) return (struct file *)(node->file_ptr & FFS_MASK); } -static inline struct file *io_file_from_index(struct io_file_table *table, - int index) -{ - struct io_rsrc_node *node = io_rsrc_node_lookup(&table->data, index); - - if (node) - return io_slot_file(node); - return NULL; -} - static inline void io_fixed_file_set(struct io_rsrc_node *node, struct file *file) { |