summaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorMel Gorman <mgorman@techsingularity.net>2019-03-05 18:44:39 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-06 00:07:16 -0500
commit4469ab98477b290f6728b79f8d225d9d88ce16e3 (patch)
tree78c0e3ab2a32926970bdc4abb70875581eaaef5e /mm/compaction.c
parent40cacbcb324036233a927418441323459d28d19b (diff)
mm, compaction: rename map_pages to split_map_pages
It's non-obvious that high-order free pages are split into order-0 pages from the function name. Fix it. Link: http://lkml.kernel.org/r/20190118175136.31341-6-mgorman@techsingularity.net Signed-off-by: Mel Gorman <mgorman@techsingularity.net> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Dan Carpenter <dan.carpenter@oracle.com> Cc: David Rientjes <rientjes@google.com> Cc: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r--mm/compaction.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 163841e1b167..32a88b49f973 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -66,7 +66,7 @@ static unsigned long release_freepages(struct list_head *freelist)
66 return high_pfn; 66 return high_pfn;
67} 67}
68 68
69static void map_pages(struct list_head *list) 69static void split_map_pages(struct list_head *list)
70{ 70{
71 unsigned int i, order, nr_pages; 71 unsigned int i, order, nr_pages;
72 struct page *page, *next; 72 struct page *page, *next;
@@ -644,7 +644,7 @@ isolate_freepages_range(struct compact_control *cc,
644 } 644 }
645 645
646 /* __isolate_free_page() does not map the pages */ 646 /* __isolate_free_page() does not map the pages */
647 map_pages(&freelist); 647 split_map_pages(&freelist);
648 648
649 if (pfn < end_pfn) { 649 if (pfn < end_pfn) {
650 /* Loop terminated early, cleanup. */ 650 /* Loop terminated early, cleanup. */
@@ -1141,7 +1141,7 @@ static void isolate_freepages(struct compact_control *cc)
1141 } 1141 }
1142 1142
1143 /* __isolate_free_page() does not map the pages */ 1143 /* __isolate_free_page() does not map the pages */
1144 map_pages(freelist); 1144 split_map_pages(freelist);
1145 1145
1146 /* 1146 /*
1147 * Record where the free scanner will restart next time. Either we 1147 * Record where the free scanner will restart next time. Either we