[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200324142229.12028-6-bhe@redhat.com>
Date: Tue, 24 Mar 2020 22:22:29 +0800
From: Baoquan He <bhe@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: linux-mm@...ck.org, akpm@...ux-foundation.org,
iamjoonsoo.kim@....com, hannes@...xchg.org, mhocko@...nel.org,
vbabka@...e.cz, bhe@...hat.com
Subject: [PATCH 5/5] mm/vmstat.c: remove the useless code
No one calls is_zone_first_populated(), remove it.
Signed-off-by: Baoquan He <bhe@...hat.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
Powered by blists - more mailing lists