Skip to contentSkip to conversation

loop: remove redundant __GFP_NOWARN flag

PATCH Applied Pedro Demarchi Gomes 3 participants 3 messages Oct 7, 2025 – Oct 8, 2025 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 loop: remove redundant __GFP_NOWARN flag

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

---
 drivers/block/loop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/loop.c +1 -1
index 94ec7f747f36..13ce229d450c 100644
@@ -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
Signature · 1 line
2.43.0
maintainer Applied
#2 lore raw
In reply to Pedro Demarchi Gomes
Quoted 4 lines · Pedro Demarchi Gomes

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

Applied, thanks!

[1/1] loop: remove redundant __GFP_NOWARN flag

      commit: 455281c0ef4e2cabdfe2e8b83fa6010d5210811c

Best regards,

Signature · 1 line
Jens Axboe