summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r--mm/vmstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 9c624595e904..83b30edc2f7f 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -227,7 +227,7 @@ int calculate_normal_threshold(struct zone *zone)
227 * 125 1024 10 16-32 GB 9 227 * 125 1024 10 16-32 GB 9
228 */ 228 */
229 229
230 mem = zone->managed_pages >> (27 - PAGE_SHIFT); 230 mem = zone_managed_pages(zone) >> (27 - PAGE_SHIFT);
231 231
232 threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem)); 232 threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem));
233 233
@@ -1569,7 +1569,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
1569 high_wmark_pages(zone), 1569 high_wmark_pages(zone),
1570 zone->spanned_pages, 1570 zone->spanned_pages,
1571 zone->present_pages, 1571 zone->present_pages,
1572 zone->managed_pages); 1572 zone_managed_pages(zone));
1573 1573
1574 seq_printf(m, 1574 seq_printf(m,
1575 "\n protection: (%ld", 1575 "\n protection: (%ld",