]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
loop: remove redundant __GFP_NOWARN flag
authorPedro Demarchi Gomes <pedrodemargomes@gmail.com>
Tue, 7 Oct 2025 18:12:05 +0000 (15:12 -0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Oct 2025 12:27:53 +0000 (06:27 -0600)
GFP_NOWAIT already includes __GFP_NOWARN, so let's remove the
redundant __GFP_NOWARN.

Signed-off-by: Pedro Demarchi Gomes <pedrodemargomes@gmail.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c

index 94ec7f747f3672338c0dd63fbf253bcec8ce43fe..13ce229d450cd308ab96b98f7fc8fd49efe24df9 100644 (file)
@@ -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