diff options
author | Pavel Tatashin <pasha.tatashin@oracle.com> | 2018-08-22 07:04:47 +0000 |
---|---|---|
committer | Johannes Weiner <hannes@cmpxchg.org> | 2018-08-22 07:04:47 +0000 |
commit | 3e20b17e2b4d60b66eb53a540fad9fb470d80211 (patch) | |
tree | 18d48b405ceb6cc837c30d88b29eac17bbe6990b | |
parent | 177731698b697c03bec7898a13e2a2bf17c14cd1 (diff) |
mm-move-mirrored-memory-specific-code-outside-of-memmap_init_zone-v2
uninline overlap_memmap_init()
Link: http://lkml.kernel.org/r/20180726193509.3326-4-pasha.tatashin@oracle.com
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Pasha Tatashin <Pavel.Tatashin@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | mm/page_alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3267efd51480..839e0cc17f2c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5458,7 +5458,8 @@ void __ref build_all_zonelists(pg_data_t *pgdat) } /* If zone is ZONE_MOVABLE but memory is mirrored, it is an overlapped init */ -static inline bool overlap_memmap_init(unsigned long zone, unsigned long *pfn) +static bool __meminit +overlap_memmap_init(unsigned long zone, unsigned long *pfn) { #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP static struct memblock_region *r; |