Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -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))