From: Timo Kokkonen Date: Sun, 29 Aug 2010 10:23:57 +0000 (+0300) Subject: Analyzer: Use the kpagecount data for determining unique pages X-Git-Url: http://git.itanic.dy.fi/?p=scan-pagemap;a=commitdiff_plain;h=6b1d21a735db7e983c0d62bb33d1186b6ac4ee30 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 --- 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++; }