aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 452e2ba06c7c..b2d21e06d45d 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1462,7 +1462,7 @@ int zone_watermark_ok(struct zone *z, int order, unsigned long mark,
1462{ 1462{
1463 /* free_pages my go negative - that's OK */ 1463 /* free_pages my go negative - that's OK */
1464 long min = mark; 1464 long min = mark;
1465 long free_pages = zone_page_state(z, NR_FREE_PAGES) - (1 << order) + 1; 1465 long free_pages = zone_nr_free_pages(z) - (1 << order) + 1;
1466 int o; 1466 int o;
1467 1467
1468 if (alloc_flags & ALLOC_HIGH) 1468 if (alloc_flags & ALLOC_HIGH)
@@ -2424,7 +2424,7 @@ void show_free_areas(void)
2424 " all_unreclaimable? %s" 2424 " all_unreclaimable? %s"
2425 "\n", 2425 "\n",
2426 zone->name, 2426 zone->name,
2427 K(zone_page_state(zone, NR_FREE_PAGES)), 2427 K(zone_nr_free_pages(zone)),
2428 K(min_wmark_pages(zone)), 2428 K(min_wmark_pages(zone)),
2429 K(low_wmark_pages(zone)), 2429 K(low_wmark_pages(zone)),
2430 K(high_wmark_pages(zone)), 2430 K(high_wmark_pages(zone)),