Commit 66a55030 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

[PATCH] Do not allocate pagesets for unpopulated zones.

We do not need to allocate pagesets for unpopulated zones.
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d5f541ed
...@@ -1829,6 +1829,9 @@ static int __cpuinit process_zones(int cpu) ...@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment