Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -6
+1 -6
io_uring/filetable.h
··· 56 56 (io_file_get_flags(file) >> REQ_F_SUPPORT_NOWAIT_BIT); 57 57 } 58 58 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 - 64 59 static inline void io_file_table_set_alloc_range(struct io_ring_ctx *ctx, 65 60 unsigned off, unsigned len) 66 61 { 67 62 ctx->file_alloc_start = off; 68 63 ctx->file_alloc_end = off + len; 69 - io_reset_alloc_hint(ctx); 64 + ctx->file_table.alloc_hint = ctx->file_alloc_start; 70 65 } 71 66 72 67 #endif