From: KAMEZAWA Hiroyuki Date: Tue, 9 Dec 2008 21:14:20 +0000 (-0800) Subject: page_cgroup should ignore empty nodes X-Git-Tag: v2.6.28-rc8~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=653d22c0f5c41496c0e949ef5d141ab37c0b0580;p=linux-2.6-omap-h63xx.git page_cgroup should ignore empty nodes Fix a total bootup freeze on ia64. Signed-off-by: KAMEZAWA Hiroyuki Tested-by: Li Zefan Reported-by: Li Zefan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c index 0b3cbf090a6..ab27ff75051 100644 --- a/mm/page_cgroup.c +++ b/mm/page_cgroup.c @@ -49,6 +49,9 @@ static int __init alloc_node_page_cgroup(int nid) start_pfn = NODE_DATA(nid)->node_start_pfn; nr_pages = NODE_DATA(nid)->node_spanned_pages; + if (!nr_pages) + return 0; + table_size = sizeof(struct page_cgroup) * nr_pages; base = __alloc_bootmem_node_nopanic(NODE_DATA(nid),