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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index b9fd2c238f13..8f3de5af92dd 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1358,7 +1358,7 @@ void show_free_areas(void)
1358 show_node(zone); 1358 show_node(zone);
1359 printk("%s per-cpu:", zone->name); 1359 printk("%s per-cpu:", zone->name);
1360 1360
1361 if (!zone->present_pages) { 1361 if (!populated_zone(zone)) {
1362 printk(" empty\n"); 1362 printk(" empty\n");
1363 continue; 1363 continue;
1364 } else 1364 } else
@@ -1435,7 +1435,7 @@ void show_free_areas(void)
1435 1435
1436 show_node(zone); 1436 show_node(zone);
1437 printk("%s: ", zone->name); 1437 printk("%s: ", zone->name);
1438 if (!zone->present_pages) { 1438 if (!populated_zone(zone)) {
1439 printk("empty\n"); 1439 printk("empty\n");
1440 continue; 1440 continue;
1441 } 1441 }
@@ -2134,7 +2134,7 @@ static int frag_show(struct seq_file *m, void *arg)
2134 int order; 2134 int order;
2135 2135
2136 for (zone = node_zones; zone - node_zones < MAX_NR_ZONES; ++zone) { 2136 for (zone = node_zones; zone - node_zones < MAX_NR_ZONES; ++zone) {
2137 if (!zone->present_pages) 2137 if (!populated_zone(zone))
2138 continue; 2138 continue;
2139 2139
2140 spin_lock_irqsave(&zone->lock, flags); 2140 spin_lock_irqsave(&zone->lock, flags);
@@ -2167,7 +2167,7 @@ static int zoneinfo_show(struct seq_file *m, void *arg)
2167 for (zone = node_zones; zone - node_zones < MAX_NR_ZONES; zone++) { 2167 for (zone = node_zones; zone - node_zones < MAX_NR_ZONES; zone++) {
2168 int i; 2168 int i;
2169 2169
2170 if (!zone->present_pages) 2170 if (!populated_zone(zone))
2171 continue; 2171 continue;
2172 2172
2173 spin_lock_irqsave(&zone->lock, flags); 2173 spin_lock_irqsave(&zone->lock, flags);