mm: rename gfpflags_to_migratetype to gfp_migratetype for same convention
Pageblock migrate type is encoded in GFP flags, just as zone_type and zonelist. Currently we use gfp_zone() and gfp_zonelist() to extract related information, it would be proper to use the same naming convention for migrate type. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Link: http://lkml.kernel.org/r/20200329080823.7735-1-richard.weiyang@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -2100,7 +2100,7 @@ compact_zone(struct compact_control *cc, struct capture_control *capc)
|
||||
INIT_LIST_HEAD(&cc->freepages);
|
||||
INIT_LIST_HEAD(&cc->migratepages);
|
||||
|
||||
cc->migratetype = gfpflags_to_migratetype(cc->gfp_mask);
|
||||
cc->migratetype = gfp_migratetype(cc->gfp_mask);
|
||||
ret = compaction_suitable(cc->zone, cc->order, cc->alloc_flags,
|
||||
cc->highest_zoneidx);
|
||||
/* Compaction is likely to fail */
|
||||
|
Reference in New Issue
Block a user