projects/linux·commit 455281c0

loop: remove redundant __GFP_NOWARN flag

455281c0 · Pedro Demarchi Gomes <[email protected]> · 2025-10-07 15:12:05 -03:00

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

Signed-off-by: Pedro Demarchi Gomes <[email protected]>
Reviewed-by: Yu Kuai <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Commit
455281c0ef4e2cabdfe2e8b83fa6010d5210811c
Parents
506aa235

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/block/loop.cmodified+1−1View file

drivers/block/loop.c

View file
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 94ec7f7..13ce229 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