]> git.itanic.dy.fi Git - scan-pagemap/commitdiff
Analyzer: Use the kpagecount data for determining unique pages
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 29 Aug 2010 10:23:57 +0000 (13:23 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 29 Aug 2010 10:23:57 +0000 (13:23 +0300)
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 <kaapeli@itanic.dy.fi>
analyze.c

index 7a67fb47cc0370b71008fdf7c149b6692c15597e..7d28c009848b02f0f519f581302f6570f6428fe4 100644 (file)
--- 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++;
 }