Re: [PATCH v3 5/5] mm/page_alloc: Introduce memhotplug version of free_area_init_core
From: Oscar Salvador
Date: Thu Jul 26 2018 - 03:38:12 EST
On Thu, Jul 26, 2018 at 12:01:44AM +0200, osalvador@xxxxxxxxxxxxxxxxxx wrote:
> extern void free_initmem(void);
> +extern void free_area_init_core_hotplug(int nid);
The declaration should be wrapped with an #ifdef CONFIG_MEMORY_HOTPLUG.
> +void __paginginit free_area_init_core_hotplug(int nid)
> +{
> + enum zone_type j;
> + pg_data_t *pgdat = NODE_DATA(nid);
> +
> + pgdat_init_internals(pgdat);
> + for(j = 0; j < MAX_NR_ZONES; j++) {
> + struct zone *zone = pgdat->node_zones + j;
> + zone_init_internals(zone, j, nid, 0);
> + }
> +}
The same applies here
--
Oscar Salvador
SUSE L3