Skip to content

Commit

Permalink
mm: remove dependency on CONFIG_FLATMEM from online_page()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Kiper authored and Linus Torvalds committed May 25, 2011
1 parent 821ed6b commit a3bc42f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a3bc42f

Please sign in to comment.