Skip to content

Commit

Permalink
[PATCH] Do not allocate pagesets for unpopulated zones.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Sep 27, 2006
1 parent d5f541e commit 66a5503
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,9 @@ static int __cpuinit process_zones(int cpu)

for_each_zone(zone) {

if (!populated_zone(zone))
continue;

zone_pcp(zone, cpu) = kmalloc_node(sizeof(struct per_cpu_pageset),
GFP_KERNEL, cpu_to_node(cpu));
if (!zone_pcp(zone, cpu))
Expand Down

0 comments on commit 66a5503

Please sign in to comment.