From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 12 Jun 2006 14:13:26 -0700 (PDT) From: Christoph Lameter Message-Id: <20060612211326.20862.28655.sendpatchset@schroedinger.engr.sgi.com> In-Reply-To: <20060612211244.20862.41106.sendpatchset@schroedinger.engr.sgi.com> References: <20060612211244.20862.41106.sendpatchset@schroedinger.engr.sgi.com> Subject: [PATCH 08/21] swap_prefetch: Split NR_ANON off NR_MAPPED Sender: owner-linux-mm@kvack.org Return-Path: To: linux-kernel@vger.kernel.org Cc: akpm@osdl.org, Hugh Dickins , Con Kolivas , Marcelo Tosatti , Nick Piggin , linux-mm@kvack.org, Andi Kleen , Dave Chinner , Christoph Lameter List-ID: Separated out by request from Andrew. Signed-off-by: Christoph Lameter Index: linux-2.6.17-rc6-cl/mm/swap_prefetch.c =================================================================== --- linux-2.6.17-rc6-cl.orig/mm/swap_prefetch.c 2006-06-10 14:57:06.644921771 -0700 +++ linux-2.6.17-rc6-cl/mm/swap_prefetch.c 2006-06-10 15:39:44.582122436 -0700 @@ -395,6 +395,7 @@ static int prefetch_suitable(void) * would be expensive to fix and not of great significance. */ limit = node_page_state(node, NR_MAPPED) + + node_page_state(node, NR_ANON) + ps.nr_slab + ps.nr_dirty + ps.nr_unstable + total_swapcache_pages; if (limit > ns->prefetch_watermark) { -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org