From 6b1d21a735db7e983c0d62bb33d1186b6ac4ee30 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sun, 29 Aug 2010 13:23:57 +0300 Subject: [PATCH] Analyzer: Use the kpagecount data for determining unique pages Since we now have the kpagecount interface, use that to determine whether a page is truly referenced only once or not. Signed-off-by: Timo Kokkonen --- analyze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyze.c b/analyze.c index 7a67fb4..7d28c00 100644 --- a/analyze.c +++ b/analyze.c @@ -110,7 +110,7 @@ get_stats: af->pages_present++; else if (page_swapped(pf)) af->pages_swapped++; - if (pf->refcount == 1) + if (pf->kpagecount == 1) af->pages_unique++; } -- 2.44.0