Message ID | 20200324142229.12028-6-bhe@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | improvements about lowmem_reserve and /proc/zoneinfo | expand |
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) {
No one calls is_zone_first_populated(), remove it. Signed-off-by: Baoquan He <bhe@redhat.com> --- mm/vmstat.c | 14 -------------- 1 file changed, 14 deletions(-)