diff options
author | Usama Arif <usama.arif@bytedance.com> | 2022-01-27 15:04:44 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-01-27 18:18:53 +0100 |
commit | f6133fbd373811066c8441737e65f384c8f31974 (patch) | |
tree | a081af35080b2e2d4a7892bf12f348b739d77709 /fs | |
parent | io_uring: fix bug in slow unregistering of nodes (diff) | |
download | linux-f6133fbd373811066c8441737e65f384c8f31974.tar.xz linux-f6133fbd373811066c8441737e65f384c8f31974.zip |
io_uring: remove unused argument from io_rsrc_node_alloc
io_ring_ctx is not used in the function.
Signed-off-by: Usama Arif <usama.arif@bytedance.com>
Link: https://lore.kernel.org/r/20220127140444.4016585-1-usama.arif@bytedance.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/io_uring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index dd4c801c7afd..2e04f718319d 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -7846,7 +7846,7 @@ static __cold void io_rsrc_node_ref_zero(struct percpu_ref *ref) mod_delayed_work(system_wq, &ctx->rsrc_put_work, delay); } -static struct io_rsrc_node *io_rsrc_node_alloc(struct io_ring_ctx *ctx) +static struct io_rsrc_node *io_rsrc_node_alloc(void) { struct io_rsrc_node *ref_node; @@ -7897,7 +7897,7 @@ static int io_rsrc_node_switch_start(struct io_ring_ctx *ctx) { if (ctx->rsrc_backup_node) return 0; - ctx->rsrc_backup_node = io_rsrc_node_alloc(ctx); + ctx->rsrc_backup_node = io_rsrc_node_alloc(); return ctx->rsrc_backup_node ? 0 : -ENOMEM; } |