[PATCH 5/5] mm/vmstat.c: remove the useless code

From: Baoquan He
Date: Tue Mar 24 2020 - 10:23:01 EST


No one calls is_zone_first_populated(), remove it.

Signed-off-by: Baoquan He <bhe@xxxxxxxxxx>
---
mm/vmstat.c | 14 --------------
1 file changed, 14 deletions(-)

diff --git a/mm/vmstat.c b/mm/vmstat.c
index 4bbf9be786da..7097eb99f30d 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -1548,20 +1548,6 @@ static const struct seq_operations pagetypeinfo_op = {
.show = pagetypeinfo_show,
};

-static bool is_zone_first_populated(pg_data_t *pgdat, struct zone *zone)
-{
- int zid;
-
- for (zid = 0; zid < MAX_NR_ZONES; zid++) {
- struct zone *compare = &pgdat->node_zones[zid];
-
- if (populated_zone(compare))
- return zone == compare;
- }
-
- return false;
-}
-
static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
struct zone *zone)
{
--
2.17.2