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 <[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]>
  • Loading branch information
aquini authored and 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.