Linux block layer
 help / color / mirror / Atom feed
* [PATCH] loop: remove redundant __GFP_NOWARN flag
@ 2025-10-07 18:12 Pedro Demarchi Gomes
  2025-10-07 18:48 ` shinichiro.kawasaki
  2025-10-08 12:28 ` Jens Axboe
  0 siblings, 2 replies; 3+ messages in thread
From: Pedro Demarchi Gomes @ 2025-10-07 18:12 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, linux-kernel, Pedro Demarchi Gomes

GFP_NOWAIT already includes __GFP_NOWARN, so let's remove the
redundant __GFP_NOWARN.

Signed-off-by: Pedro Demarchi Gomes <pedrodemargomes@gmail.com>
---
 drivers/block/loop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 94ec7f747f36..13ce229d450c 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -824,7 +824,7 @@ static void loop_queue_work(struct loop_device *lo, struct loop_cmd *cmd)
 	if (worker)
 		goto queue_work;
 
-	worker = kzalloc(sizeof(struct loop_worker), GFP_NOWAIT | __GFP_NOWARN);
+	worker = kzalloc(sizeof(struct loop_worker), GFP_NOWAIT);
 	/*
 	 * In the event we cannot allocate a worker, just queue on the
 	 * rootcg worker and issue the I/O as the rootcg
-- 
2.43.0


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

end of thread, other threads:[~2025-10-08 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-07 18:12 [PATCH] loop: remove redundant __GFP_NOWARN flag Pedro Demarchi Gomes
2025-10-07 18:48 ` shinichiro.kawasaki
2025-10-08 12:28 ` Jens Axboe

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