From c88abbe72ee2b24c7d5d500210853aca89a16e7c Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Mon, 4 Jun 2012 22:40:28 +0300 Subject: [PATCH] Revert "Fix bug when showing process shared mappings" This reverts commit 52cf500b2f5cbe16f991990d50ec990ab9540b97. The previous commit was causing the allocated pages reported by the '-s' option to be doubled. That is clearly wrong. As I can not remember anymore what I was thinking when I wrote the commit and I can only see how wrong it is, I see no reason to not revert it. Signed-off-by: Timo Kokkonen --- analyze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analyze.c b/analyze.c index 3468d92..48452f8 100644 --- a/analyze.c +++ b/analyze.c @@ -324,8 +324,8 @@ static void _dump_process_maps(struct rb_root *root, struct process *ps, af.map = map; count_pages(root, &af); - map->pages_present += af.pages_present; - map->pages_swapped += af.pages_swapped; + map->pages_present = af.pages_present; + map->pages_swapped = af.pages_swapped; } biggest = MAX(biggest, map->pages_present + map->pages_swapped); -- 2.45.0