diff options
author | Rafael Aquini <[email protected]> | 2014-12-02 15:59:22 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-12-02 17:32:07 -0800 |
commit | bc127bda37db2792fa7f02a8d258731ecf3e4b8b (patch) | |
tree | c7dcd0d8df0d930a7a2c13589a9224939bb8359b | |
parent | 3a18ca061311f2f1ee9c44012f89c7436d392117 (diff) |
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 <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Yasuaki Ishimatsu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-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; |