projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc61686
)
page_cgroup should ignore empty nodes
author
KAMEZAWA Hiroyuki
<
[email protected]
>
Tue, 9 Dec 2008 21:14:20 +0000
(13:14 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 10 Dec 2008 16:01:53 +0000
(08:01 -0800)
Fix a total bootup freeze on ia64.
Signed-off-by: KAMEZAWA Hiroyuki <
[email protected]
>
Tested-by: Li Zefan <
[email protected]
>
Reported-by: Li Zefan <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page_cgroup.c
patch
|
blob
|
history
diff --git
a/mm/page_cgroup.c
b/mm/page_cgroup.c
index 0b3cbf090a674a1424cb1d7cc9e4cd4f3bfa4c02..ab27ff75051958fb992417ddcf675a296b96176e 100644
(file)
--- 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),