Skip to content

Commit

Permalink
page_cgroup should ignore empty nodes
Browse files Browse the repository at this point in the history
Fix a total bootup freeze on ia64.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Li Zefan <lizf@cn.fujitsu.com>
Reported-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
hkamezawa authored and torvalds committed Dec 10, 2008
1 parent cc61686 commit 653d22c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mm/page_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 653d22c

Please sign in to comment.