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>
This commit is contained in:
parent
b54a14041e
commit
cb1717a7cd
2 changed files with 3 additions and 11 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue