[Patch] New zone ZONE_EASY_RECLAIM take 2[2/5]

Yasunori Goto
2005-11-28T11:36:19Z

This defines new zone ZONE_EASY_RECLAIM.
ZONES_SHIFT becomes 3.

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>

Index: new_zone_mm/include/linux/mmzone.h
=================================--- new_zone_mm.orig/include/linux/mmzone.h 2005-11-17 16:57:15.000000000 +0900
+++ new_zone_mm/include/linux/mmzone.h 2005-11-17 17:07:30.000000000 +0900
@@ -74,9 +74,10 @@ struct per_cpu_pageset {
#define ZONE_DMA32 1
#define ZONE_NORMAL 2
#define ZONE_HIGHMEM 3
+#define ZONE_EASY_RECLAIM 4

-#define MAX_NR_ZONES 4 /* Sync this with ZONES_SHIFT */
-#define ZONES_SHIFT 2 /* ceil(log2(MAX_NR_ZONES)) */
+#define MAX_NR_ZONES 5 /* Sync this with ZONES_SHIFT */
+#define ZONES_SHIFT 3 /* ceil(log2(MAX_NR_ZONES)) */

/*
Index: new_zone_mm/mm/page_alloc.c
=================================--- new_zone_mm.orig/mm/page_alloc.c 2005-11-17 17:05:12.000000000 +0900
+++ new_zone_mm/mm/page_alloc.c 2005-11-17 17:08:17.000000000 +0900
@@ -75,7 +75,7 @@ EXPORT_SYMBOL(totalram_pages);
struct zone *zone_table[1 << ZONETABLE_SHIFT] __read_mostly;
EXPORT_SYMBOL(zone_table);

-static char *zone_names[MAX_NR_ZONES] = { "DMA", "DMA32", "Normal", "HighMem" };
+static char *zone_names[MAX_NR_ZONES] = { "DMA", "DMA32", "Normal", "HighMem", "Easy Reclaim"};
int min_free_kbytes = 1024;

unsigned long __initdata nr_kernel_pages;