提交 a3bc42f5 编写于 作者: D Daniel Kiper 提交者: Linus Torvalds

mm: remove dependency on CONFIG_FLATMEM from online_page()

online_pages() is only compiled for CONFIG_MEMORY_HOTPLUG_SPARSE, so there
is no need to support CONFIG_FLATMEM code within it.

This patch removes code that is never used.
Signed-off-by: NDaniel Kiper <dkiper@net-space.pl>
Acked-by: NDave Hansen <dave@linux.vnet.ibm.com>
Acked-by: NDavid Rientjes <rientjes@google.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 821ed6bb
......@@ -374,10 +374,6 @@ void online_page(struct page *page)
totalhigh_pages++;
#endif
#ifdef CONFIG_FLATMEM
max_mapnr = max(pfn, max_mapnr);
#endif
ClearPageReserved(page);
init_page_count(page);
__free_page(page);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册