From a7fa1f53635677f31c7df30418d1d3d2bd14b144 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 4 Mar 2003 09:51:52 +0000 Subject: [PATCH] While it is true that ALL_PAGES is a good indicator of rmap, we don't get this define without already including an rmap-specific header. Instead use PG_inactive_dirty. --- lustre/llite/iod.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lustre/llite/iod.c b/lustre/llite/iod.c index 134020d..57ad39a 100644 --- a/lustre/llite/iod.c +++ b/lustre/llite/iod.c @@ -35,8 +35,8 @@ #include #include -/* PG_lru is shorthand for rmap, we want free_high/low here.. */ -#ifdef PG_lru +/* PG_inactive_clean is shorthand for rmap, we want free_high/low here.. */ +#ifdef PG_inactive_clean #include #endif @@ -232,7 +232,7 @@ static void ll_brw_pages_unlock( struct inode *inode, EXIT; } -#ifndef ALL_ZONES +#ifndef PG_inactive_clean #ifdef CONFIG_DISCONTIGMEM #error "sorry, we don't support DISCONTIGMEM yet" #endif @@ -268,12 +268,12 @@ static int zones_need_balancing(void) * * 2.5 gets this right, see the {inc,dec}_page_state(nr_dirty, ) */ -static int should_writeback(void) +static int should_writeback(void) { -#ifdef ALL_ZONES +#ifdef PG_inactive_clean if (free_high(ALL_ZONES) > 0 || free_low(ANY_ZONE) > 0) #else - if ( zones_need_balancing() ) + if (zones_need_balancing()) #endif return 1; return 0; -- 1.8.3.1