summaryrefslogtreecommitdiffstats
path: root/mm/bootmem.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2011-02-24 14:43:06 +0100
committerTejun Heo <tj@kernel.org>2011-02-24 14:43:06 +0100
commite782ab421bbba1912c87934bd0e8998630736418 (patch)
tree496e4ccaeadf3551d4c516b9f36c7c087eef9e3b /mm/bootmem.c
parent0932587328d9bd5b500a640fbaff3290c8d4cabf (diff)
downloadlinux-stable-e782ab421bbba1912c87934bd0e8998630736418.tar.gz
linux-stable-e782ab421bbba1912c87934bd0e8998630736418.tar.bz2
linux-stable-e782ab421bbba1912c87934bd0e8998630736418.zip
bootmem: Move contig_page_data definition to bootmem.c/nobootmem.c
Now that bootmem.c and nobootmem.c are separate, it's cleaner to define contig_page_data in each file than in page_alloc.c with #ifdef. Move it. This patch doesn't introduce any behavior change. -v2: According to Andrew, fixed the struct layout. -tj: Updated commit description. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Acked-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/bootmem.c')
-rw-r--r--mm/bootmem.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c
index 4403e2fbc13d..07aeb89e396e 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -23,6 +23,13 @@
#include "internal.h"
+#ifndef CONFIG_NEED_MULTIPLE_NODES
+struct pglist_data __refdata contig_page_data = {
+ .bdata = &bootmem_node_data[0]
+};
+EXPORT_SYMBOL(contig_page_data);
+#endif
+
unsigned long max_low_pfn;
unsigned long min_low_pfn;
unsigned long max_pfn;