public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH] io_uring: remove unused argument from io_rsrc_node_alloc
@ 2022-01-27 14:04 Usama Arif
  2022-01-27 17:19 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Usama Arif @ 2022-01-27 14:04 UTC (permalink / raw)
  To: io-uring, axboe, asml.silence, linux-kernel; +Cc: fam.zheng, Usama Arif

io_ring_ctx is not used in the function.

Signed-off-by: Usama Arif <[email protected]>
---
 fs/io_uring.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/io_uring.c b/fs/io_uring.c
index e54c41274..a256600fa 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -7841,7 +7841,7 @@ static __cold void io_rsrc_node_ref_zero(struct percpu_ref *ref)
 		mod_delayed_work(system_wq, &ctx->rsrc_put_work, HZ);
 }
 
-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;
 
@@ -7892,7 +7892,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;
 }
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] io_uring: remove unused argument from io_rsrc_node_alloc
  2022-01-27 14:04 [PATCH] io_uring: remove unused argument from io_rsrc_node_alloc Usama Arif
@ 2022-01-27 17:19 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2022-01-27 17:19 UTC (permalink / raw)
  To: Usama Arif, linux-kernel, asml.silence, io-uring; +Cc: fam.zheng

On Thu, 27 Jan 2022 14:04:44 +0000, Usama Arif wrote:
> io_ring_ctx is not used in the function.
> 
> 

Applied, thanks!

[1/1] io_uring: remove unused argument from io_rsrc_node_alloc
      commit: f6133fbd373811066c8441737e65f384c8f31974

Best regards,
-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-27 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-27 14:04 [PATCH] io_uring: remove unused argument from io_rsrc_node_alloc Usama Arif
2022-01-27 17:19 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox