mm/vmscan: Remove redundant __GFP_NOWARN
Subsystems (3)
PATCH v2 1/1 mm/vmscan: 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.
--- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmscan.c +1 -1
@@ -1054,7 +1054,7 @@ static unsigned int demote_folio_list(struct list_head *demote_folios,* When this happens, 'page' will likely just be discarded * instead of migrated. */ - .gfp_mask = (GFP_HIGHUSER_MOVABLE & ~__GFP_RECLAIM) | __GFP_NOWARN | + .gfp_mask = (GFP_HIGHUSER_MOVABLE & ~__GFP_RECLAIM) | __GFP_NOMEMALLOC | GFP_NOWAIT, .nid = target_nid, .nmask = &allowed_mask,
Signature · 1 line
2.36.1
Quoted 6 lines · Fushuai Wang
The
__GFP_NOWARNflag was included inGFP_NOWAITsince commit16f5dfbc851b("gfp: include__GFP_NOWARNinGFP_NOWAIT"). So remove the redundant__GFP_NOWARNflag.Signed-off-by Fushuai Wang <[email protected]>---
Signature · 3 lines
Cheers David / dhildenb
Quoted 5 lines · Fushuai Wang
The
__GFP_NOWARNflag was included inGFP_NOWAITsince commit16f5dfbc851b("gfp: include__GFP_NOWARNinGFP_NOWAIT"). So remove the redundant__GFP_NOWARNflag.Signed-off-by Fushuai Wang <[email protected]>
Quoted 5 lines · Fushuai Wang
The
__GFP_NOWARNflag was included inGFP_NOWAITsince commit16f5dfbc851b("gfp: include__GFP_NOWARNinGFP_NOWAIT"). So remove the redundant__GFP_NOWARNflag.Signed-off-by Fushuai Wang <[email protected]>
Quoted 5 lines · Fushuai Wang
The
__GFP_NOWARNflag was included inGFP_NOWAITsince commit16f5dfbc851b("gfp: include__GFP_NOWARNinGFP_NOWAIT"). So remove the redundant__GFP_NOWARNflag.Signed-off-by Fushuai Wang <[email protected]>
LGTM, so:
Quoted 20 lines
--- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/vmscan.c +1
-2@@ -1054,7 +1054,7 @@ static unsigned int demote_folio_list(struct list_head *demote_folios,* When this happens, 'page' will likely just be discarded * instead of migrated. */ - .gfp_mask = (GFP_HIGHUSER_MOVABLE & ~__GFP_RECLAIM) | __GFP_NOWARN | + .gfp_mask = (GFP_HIGHUSER_MOVABLE & ~__GFP_RECLAIM) | __GFP_NOMEMALLOC | GFP_NOWAIT, .nid = target_nid, .nmask = &allowed_mask, --2.36.1