From: Rafael Aquini Date: Tue, 2 Dec 2014 23:59:22 +0000 (-0800) Subject: mm: do not overwrite reserved pages counter at show_mem() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc127bda37db2792fa7f02a8d258731ecf3e4b8b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm: do not overwrite reserved pages counter at show_mem() Minor fixlet to perform the reserved pages counter aggregation for each node, at show_mem() Signed-off-by: Rafael Aquini Acked-by: Rik van Riel Acked-by: Johannes Weiner Acked-by: Yasuaki Ishimatsu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/show_mem.c b/lib/show_mem.c index 09225796991a..5e256271b47b 100644 --- a/lib/show_mem.c +++ b/lib/show_mem.c @@ -28,7 +28,7 @@ void show_mem(unsigned int filter) continue; total += zone->present_pages; - reserved = zone->present_pages - zone->managed_pages; + reserved += zone->present_pages - zone->managed_pages; if (is_highmem_idx(zoneid)) highmem += zone->present_pages;