Skip to content

Commit 455281c

Browse files
pedrodemargomesaxboe
authored andcommitted
loop: remove redundant __GFP_NOWARN flag
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]>
1 parent 506aa23 commit 455281c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ static void loop_queue_work(struct loop_device *lo, struct loop_cmd *cmd)
824824
if (worker)
825825
goto queue_work;
826826

827-
worker = kzalloc(sizeof(struct loop_worker), GFP_NOWAIT | __GFP_NOWARN);
827+
worker = kzalloc(sizeof(struct loop_worker), GFP_NOWAIT);
828828
/*
829829
* In the event we cannot allocate a worker, just queue on the
830830
* rootcg worker and issue the I/O as the rootcg

0 commit comments

Comments
 (0)