From 135b9f3342f949dc13ed65e205859d09fc1ab070 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 4 Mar 2003 09:45:18 +0000 Subject: [PATCH] It seems PG_lru also exists on the PNNL kernel, so use ALL_ZONES instead? --- lustre/llite/iod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/llite/iod.c b/lustre/llite/iod.c index 7ad02e8..134020d 100644 --- a/lustre/llite/iod.c +++ b/lustre/llite/iod.c @@ -140,7 +140,7 @@ static int llwp_consume_page(struct ll_writeback_pages *llwp, */ LASSERT(pg->count >= 0); - CDEBUG(D_CACHE, "brw_page %p: off %lld cnt %d, page %p: ind %ld\n", + CDEBUG(D_CACHE, "brw_page %p: off "LPU64" cnt %d, page %p: ind %ld\n", pg, pg->off, pg->count, page, page->index); if ( llwp->num_frags == 3 || llwp->num_pages == LLWP_MAX_PAGES ) @@ -232,7 +232,7 @@ static void ll_brw_pages_unlock( struct inode *inode, EXIT; } -#ifndef PG_lru +#ifndef ALL_ZONES #ifdef CONFIG_DISCONTIGMEM #error "sorry, we don't support DISCONTIGMEM yet" #endif @@ -270,7 +270,7 @@ static int zones_need_balancing(void) */ static int should_writeback(void) { -#ifdef PG_lru +#ifdef ALL_ZONES if (free_high(ALL_ZONES) > 0 || free_low(ANY_ZONE) > 0) #else if ( zones_need_balancing() ) -- 1.8.3.1