loop: Remove redundant __GFP_NOWARN
PATCH 1/1 loop: Remove redundant __GFP_NOWARN
The __GFP_NOWARN flag was included in GFP_NOWAIT since commit 16f5dfbc851b ("gfp: include __GFP_NOWARN in GFP_NOWAIT"). So remove the redundant __GFP_NOWARN flag.
Signed-off-by Fushuai Wang <[email protected]>
--- drivers/block/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/loop.c +1 -1
@@ -822,7 +822,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.36.1
Quoted 3 lines
Quoted 3 lines
The
__GFP_NOWARNflag was included inGFP_NOWAITsince commit16f5dfbc851b("gfp: include__GFP_NOWARNinGFP_NOWAIT"). So remove the redundant__GFP_NOWARNflag.
I see that Qianfeng has already changed this, please ignore this.
Regards,
Wang.