New zone ZONE_EASY_RECLAIM[2/5]
Subsystems (4)
This defines new zone ZONE_EASY_RECLAIM.
Note:
I found DMA32_ZONE is included in -mm tree. If one more new zone is created before/after my patch, the zone number field in page->flags is not enough. My patch doesn't care about it yet.
Signed-off-by Yasunori Goto <[email protected]>
---
include/linux/mmzone.h +2 -1
@@ -72,8 +72,9 @@ struct per_cpu_pageset {#define ZONE_DMA 0#define ZONE_NORMAL 1#define ZONE_HIGHMEM 2 +#define ZONE_EASY_RECLAIM 3 -#define MAX_NR_ZONES 3/* Sync this with ZONES_SHIFT */ +#define MAX_NR_ZONES 4/* Sync this with ZONES_SHIFT */ #define ZONES_SHIFT 2/* ceil(log2(MAX_NR_ZONES)) */
mm/page_alloc.c +1 -1
@@ -72,7 +72,7 @@ EXPORT_SYMBOL(nr_swap_pages);struct zone *zone_table[1 <<ZONETABLE_SHIFT ]__read_mostly ;EXPORT_SYMBOL (zone_table); -static char *zone_names[MAX_NR_ZONES ] = {"DMA" ,"Normal" ,"HighMem" }; +static char *zone_names[MAX_NR_ZONES ] = {"DMA" ,"Normal" ,"HighMem" ,"Easy Reclaim" };int min_free_kbytes =1024 ;unsigned long __initdata nr_kernel_pages;
Signature · 8 lines
Yasunori Goto -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>