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: https://git.karo-electronics.de/?a=commitdiff_plain;h=653d22c0f5c41496c0e949ef5d141ab37c0b0580;p=karo-tx-linux.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 0b3cbf090a67..ab27ff750519 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),