Skip to content

Commit f6133fb

Browse files
uarif1axboe
authored andcommitted
io_uring: remove unused argument from io_rsrc_node_alloc
io_ring_ctx is not used in the function. Signed-off-by: Usama Arif <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent b36a205 commit f6133fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/io_uring.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7846,7 +7846,7 @@ static __cold void io_rsrc_node_ref_zero(struct percpu_ref *ref)
78467846
mod_delayed_work(system_wq, &ctx->rsrc_put_work, delay);
78477847
}
78487848

7849-
static struct io_rsrc_node *io_rsrc_node_alloc(struct io_ring_ctx *ctx)
7849+
static struct io_rsrc_node *io_rsrc_node_alloc(void)
78507850
{
78517851
struct io_rsrc_node *ref_node;
78527852

@@ -7897,7 +7897,7 @@ static int io_rsrc_node_switch_start(struct io_ring_ctx *ctx)
78977897
{
78987898
if (ctx->rsrc_backup_node)
78997899
return 0;
7900-
ctx->rsrc_backup_node = io_rsrc_node_alloc(ctx);
7900+
ctx->rsrc_backup_node = io_rsrc_node_alloc();
79017901
return ctx->rsrc_backup_node ? 0 : -ENOMEM;
79027902
}
79037903

0 commit comments

Comments
 (0)