Messages in this thread Patch in this message | | | From | Baoquan He <> | Subject | [PATCH 5/5] mm/vmstat.c: remove the useless code | Date | Tue, 24 Mar 2020 22:22:29 +0800 |
| |
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(-)
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
| |