Skip to content

Commit

Permalink
mm: do not overwrite reserved pages counter at show_mem()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael Aquini authored and Linus Torvalds committed Dec 3, 2014
1 parent 3a18ca0 commit bc127bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/show_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc127bd

Please sign in to comment.