]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
io_uring/filetable: kill io_reset_alloc_hint() helper
authorJens Axboe <axboe@kernel.dk>
Mon, 28 Oct 2024 14:36:12 +0000 (08:36 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 2 Nov 2024 21:45:30 +0000 (15:45 -0600)
It's only used internally, and in one spot, just open-code ti.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/filetable.h

index 6c0c9642f6e9916ea0168deb7dc41ef7e4e2e0d1..bfacadb8d0891a06eaa61e2275eb7b1898917caf 100644 (file)
@@ -56,17 +56,12 @@ static inline void io_fixed_file_set(struct io_rsrc_node *node,
                (io_file_get_flags(file) >> REQ_F_SUPPORT_NOWAIT_BIT);
 }
 
-static inline void io_reset_alloc_hint(struct io_ring_ctx *ctx)
-{
-       ctx->file_table.alloc_hint = ctx->file_alloc_start;
-}
-
 static inline void io_file_table_set_alloc_range(struct io_ring_ctx *ctx,
                                                 unsigned off, unsigned len)
 {
        ctx->file_alloc_start = off;
        ctx->file_alloc_end = off + len;
-       io_reset_alloc_hint(ctx);
+       ctx->file_table.alloc_hint = ctx->file_alloc_start;
 }
 
 #endif