Re: [PATCH v5 5/5] mm/sparse: delete old sprase_init and enable new one

From: Oscar Salvador
Date: Fri Jul 13 2018 - 05:09:54 EST



> -#ifdef CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER
> -static void __init sparse_early_mem_maps_alloc_node(void *data,
> - unsigned long pnum_begin,
> - unsigned long pnum_end,
> - unsigned long map_count, int nodeid)
> -{
> - struct page **map_map = (struct page **)data;
> -
> - sparse_buffer_init(section_map_size() * map_count, nodeid);
> - sparse_mem_maps_populate_node(map_map, pnum_begin, pnum_end,
> - map_count, nodeid);
> - sparse_buffer_fini();
> -}

>From now on, sparse_mem_maps_populate_node() is not being used anymore, so I guess we can just
remove it from sparse.c, right? (as it is done in sparse-vmemmap.c).
--
Oscar Salvador
SUSE L3