diff options
author | Rafael Aquini <aquini@redhat.com> | 2014-12-03 00:59:22 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-03 02:32:07 +0100 |
commit | bc127bda37db2792fa7f02a8d258731ecf3e4b8b (patch) | |
tree | c7dcd0d8df0d930a7a2c13589a9224939bb8359b /lib | |
parent | Merge tag 'ext4_for_linus_urgent' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-bc127bda37db2792fa7f02a8d258731ecf3e4b8b.tar.xz 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.c | 2 |
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; |