|
@@ -5667,18 +5667,6 @@ static unsigned long pfn_max_align_up(unsigned long pfn)
|
|
|
pageblock_nr_pages));
|
|
|
}
|
|
|
|
|
|
-static struct page *
|
|
|
-__alloc_contig_migrate_alloc(struct page *page, unsigned long private,
|
|
|
- int **resultp)
|
|
|
-{
|
|
|
- gfp_t gfp_mask = GFP_USER | __GFP_MOVABLE;
|
|
|
-
|
|
|
- if (PageHighMem(page))
|
|
|
- gfp_mask |= __GFP_HIGHMEM;
|
|
|
-
|
|
|
- return alloc_page(gfp_mask);
|
|
|
-}
|
|
|
-
|
|
|
/* [start, end) must belong to a single zone. */
|
|
|
static int __alloc_contig_migrate_range(struct compact_control *cc,
|
|
|
unsigned long start, unsigned long end)
|
|
@@ -5714,7 +5702,7 @@ static int __alloc_contig_migrate_range(struct compact_control *cc,
|
|
|
reclaim_clean_pages_from_list(cc->zone, &cc->migratepages);
|
|
|
|
|
|
ret = migrate_pages(&cc->migratepages,
|
|
|
- __alloc_contig_migrate_alloc,
|
|
|
+ alloc_migrate_target,
|
|
|
0, false, MIGRATE_SYNC);
|
|
|
}
|
|
|
|