Re: 2.6.14-mm2

From: KAMEZAWA Hiroyuki
Date: Wed Nov 16 2005 - 07:56:31 EST


This patch was needed to add new pages into empty zone.

-- Kamezawa Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

This is a fix to add pages into empty zone.

fixes free_area_init_code, which doesn't calles
init_currently_empty_zone() if zone size is 0.

Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

Index: linux-2.6.14-mm2/mm/page_alloc.c
--- linux-2.6.14-mm2.orig/mm/page_alloc.c
+++ linux-2.6.14-mm2/mm/page_alloc.c
@@ -2054,11 +2054,11 @@ static void __init free_area_init_core(s
zone->nr_active = 0;
zone->nr_inactive = 0;
atomic_set(&zone->reclaim_in_progress, 0);
+ init_currently_empty_zone(zone, zone_start_pfn, size);
if (!size)

zonetable_add(zone, nid, j, zone_start_pfn, size);
- init_currently_empty_zone(zone, zone_start_pfn, size);
zone_start_pfn += size;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at