diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-10-28 17:36:12 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-03 00:45:30 +0300 |
commit | 5f3829fdd69d746f36a5e87df21ce58470b8e9fa (patch) | |
tree | 5177aa01b95d04a0fd783f28ae1c97ef2f580221 /io_uring | |
parent | cb1717a7cd0fc8a063bd7fe3b4eb6fd81defb11c (diff) | |
download | linux-5f3829fdd69d746f36a5e87df21ce58470b8e9fa.tar.xz |
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 <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r-- | io_uring/filetable.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/io_uring/filetable.h b/io_uring/filetable.h index 6c0c9642f6e9..bfacadb8d089 100644 --- a/io_uring/filetable.h +++ b/io_uring/filetable.h @@ -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 |