We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb1717a commit 5f3829fCopy full SHA for 5f3829f
io_uring/filetable.h
@@ -56,17 +56,12 @@ static inline void io_fixed_file_set(struct io_rsrc_node *node,
56
(io_file_get_flags(file) >> REQ_F_SUPPORT_NOWAIT_BIT);
57
}
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
static inline void io_file_table_set_alloc_range(struct io_ring_ctx *ctx,
65
unsigned off, unsigned len)
66
{
67
ctx->file_alloc_start = off;
68
ctx->file_alloc_end = off + len;
69
- io_reset_alloc_hint(ctx);
+ ctx->file_table.alloc_hint = ctx->file_alloc_start;
70
71
72
#endif
0 commit comments