Commit bc127bda authored by Rafael Aquini's avatar Rafael Aquini Committed by Linus Torvalds
Browse files

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: default avatarRafael Aquini <>
Acked-by: default avatarRik van Riel <>
Acked-by: default avatarJohannes Weiner <>
Acked-by: default avatarYasuaki Ishimatsu <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 3a18ca06
......@@ -28,7 +28,7 @@ void show_mem(unsigned int filter)
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment