summaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2020-06-04 00:59:08 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-04 05:09:45 +0200
commit01c0bfe061f309b848d51619f20495ee2acd7727 (patch)
tree5f72ca86d1f68ba33a4ae97981677dfefdc0e9d9 /mm/compaction.c
parentmm/page_alloc.c: use NODE_MASK_NONE in build_zonelists() (diff)
downloadlinux-01c0bfe061f309b848d51619f20495ee2acd7727.tar.xz
linux-01c0bfe061f309b848d51619f20495ee2acd7727.zip
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>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r--mm/compaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 883355de4ace..5e3e3a972cd2 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -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 */