[PATCH] Do not allocate pagesets for unpopulated zones.
We do not need to allocate pagesets for unpopulated zones. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d5f541ed6e
commit
66a550308b
|
@ -1829,6 +1829,9 @@ static int __cpuinit process_zones(int cpu)
|
||||||
|
|
||||||
for_each_zone(zone) {
|
for_each_zone(zone) {
|
||||||
|
|
||||||
|
if (!populated_zone(zone))
|
||||||
|
continue;
|
||||||
|
|
||||||
zone_pcp(zone, cpu) = kmalloc_node(sizeof(struct per_cpu_pageset),
|
zone_pcp(zone, cpu) = kmalloc_node(sizeof(struct per_cpu_pageset),
|
||||||
GFP_KERNEL, cpu_to_node(cpu));
|
GFP_KERNEL, cpu_to_node(cpu));
|
||||||
if (!zone_pcp(zone, cpu))
|
if (!zone_pcp(zone, cpu))
|
||||||
|
|
Reference in New Issue