Commit bc127bda37db2792fa7f02a8d258731ecf3e4b8b

Authored by Rafael Aquini
Committed by Linus Torvalds
1 parent 3a18ca0613

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -28,7 +28,7 @@
28 28 continue;
29 29  
30 30 total += zone->present_pages;
31   - reserved = zone->present_pages - zone->managed_pages;
  31 + reserved += zone->present_pages - zone->managed_pages;
32 32  
33 33 if (is_highmem_idx(zoneid))
34 34 highmem += zone->present_pages;