Skip to content

Commit a3bc42f

Browse files
dkipertorvalds
authored andcommitted
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: Daniel Kiper <dkiper@net-space.pl> Acked-by: Dave Hansen <dave@linux.vnet.ibm.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 821ed6b commit a3bc42f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mm/memory_hotplug.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,6 @@ void online_page(struct page *page)
374374
totalhigh_pages++;
375375
#endif
376376

377-
#ifdef CONFIG_FLATMEM
378-
max_mapnr = max(pfn, max_mapnr);
379-
#endif
380-
381377
ClearPageReserved(page);
382378
init_page_count(page);
383379
__free_page(page);

0 commit comments

Comments
 (0)