Commit 455281c0 authored by Pedro Demarchi Gomes's avatar Pedro Demarchi Gomes Committed by Jens Axboe
Browse files

loop: remove redundant __GFP_NOWARN flag



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

Signed-off-by: default avatarPedro Demarchi Gomes <pedrodemargomes@gmail.com>
Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 506aa235
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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