diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-03-09 17:14:56 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2018-03-16 05:56:13 -0400 |
commit | 79375ea3ec527f746d5beae8c8f6e8a58740d4a8 (patch) | |
tree | 68862deeecaeb2c631195ee7d4c523a58272f1bf /mm/page_alloc.c | |
parent | 1a8429132e1d2ada3832db5b4a0802c49affb750 (diff) |
mm: remove obsolete alloc_remap()
Tile was the only remaining architecture to implement alloc_remap(),
and since that is being removed, there is no point in keeping this
function.
Removing all callers simplifies the mem_map handling.
Reviewed-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index cb416723538f..484e21062228 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -6199,10 +6199,7 @@ static void __ref alloc_node_mem_map(struct pglist_data *pgdat) | |||
6199 | end = pgdat_end_pfn(pgdat); | 6199 | end = pgdat_end_pfn(pgdat); |
6200 | end = ALIGN(end, MAX_ORDER_NR_PAGES); | 6200 | end = ALIGN(end, MAX_ORDER_NR_PAGES); |
6201 | size = (end - start) * sizeof(struct page); | 6201 | size = (end - start) * sizeof(struct page); |
6202 | map = alloc_remap(pgdat->node_id, size); | 6202 | map = memblock_virt_alloc_node_nopanic(size, pgdat->node_id); |
6203 | if (!map) | ||
6204 | map = memblock_virt_alloc_node_nopanic(size, | ||
6205 | pgdat->node_id); | ||
6206 | pgdat->node_mem_map = map + offset; | 6203 | pgdat->node_mem_map = map + offset; |
6207 | } | 6204 | } |
6208 | pr_debug("%s: node %d, pgdat %08lx, node_mem_map %08lx\n", | 6205 | pr_debug("%s: node %d, pgdat %08lx, node_mem_map %08lx\n", |