summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRafael Aquini <aquini@redhat.com>2014-12-02 15:59:22 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-02 17:32:07 -0800
commitbc127bda37db2792fa7f02a8d258731ecf3e4b8b (patch)
treec7dcd0d8df0d930a7a2c13589a9224939bb8359b /lib
parent3a18ca061311f2f1ee9c44012f89c7436d392117 (diff)
downloadlinux-bc127bda37db2792fa7f02a8d258731ecf3e4b8b.tar.gz
linux-bc127bda37db2792fa7f02a8d258731ecf3e4b8b.tar.bz2
linux-bc127bda37db2792fa7f02a8d258731ecf3e4b8b.zip
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 <aquini@redhat.com> Acked-by: Rik van Riel <riel@redhat.com> Acked-by: Johannes Weiner <jweiner@redhat.com> Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/show_mem.c2
1 files changed, 1 insertions, 1 deletions
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;