Skip to content

Commit 5f3829f

Browse files
committed
io_uring/filetable: kill io_reset_alloc_hint() helper
It's only used internally, and in one spot, just open-code ti. Signed-off-by: Jens Axboe <[email protected]>
1 parent cb1717a commit 5f3829f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

io_uring/filetable.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,12 @@ static inline void io_fixed_file_set(struct io_rsrc_node *node,
5656
(io_file_get_flags(file) >> REQ_F_SUPPORT_NOWAIT_BIT);
5757
}
5858

59-
static inline void io_reset_alloc_hint(struct io_ring_ctx *ctx)
60-
{
61-
ctx->file_table.alloc_hint = ctx->file_alloc_start;
62-
}
63-
6459
static inline void io_file_table_set_alloc_range(struct io_ring_ctx *ctx,
6560
unsigned off, unsigned len)
6661
{
6762
ctx->file_alloc_start = off;
6863
ctx->file_alloc_end = off + len;
69-
io_reset_alloc_hint(ctx);
64+
ctx->file_table.alloc_hint = ctx->file_alloc_start;
7065
}
7166

7267
#endif

0 commit comments

Comments
 (0)