Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3bc42f5 authored by Daniel Kiper's avatar Daniel Kiper Committed by Linus Torvalds
Browse files

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: default avatarDaniel Kiper <dkiper@net-space.pl>
Acked-by: default avatarDave Hansen <dave@linux.vnet.ibm.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 821ed6bb
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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);