From 93360111a8bad31eb380e10e4c5cbac7290e46af Mon Sep 17 00:00:00 2001 From: tao zeng Date: Wed, 16 May 2018 13:27:47 +0800 Subject: [PATCH] mm: remove total summary of pagetypeinfo PD#166462: This caused vts VtsKernelProcFileApi on Android P failed. Change-Id: I332c7ec324e7f87b0f8e0adeeef15cfd93f9b077 Signed-off-by: tao zeng --- mm/vmstat.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/mm/vmstat.c b/mm/vmstat.c index 23291f5..68b3193 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1165,18 +1165,12 @@ static void pagetypeinfo_showfree_print(struct seq_file *m, pg_data_t *pgdat, struct zone *zone) { int order, mtype; -#ifdef CONFIG_AMLOGIC_MEMORY_EXTEND - unsigned long total; -#endif /* CONFIG_AMLOGIC_MEMORY_EXTEND */ for (mtype = 0; mtype < MIGRATE_TYPES; mtype++) { seq_printf(m, "Node %4d, zone %8s, type %12s ", pgdat->node_id, zone->name, migratetype_names[mtype]); - #ifdef CONFIG_AMLOGIC_MEMORY_EXTEND - total = 0; - #endif /* CONFIG_AMLOGIC_MEMORY_EXTEND */ for (order = 0; order < MAX_ORDER; ++order) { unsigned long freecount = 0; struct free_area *area; @@ -1187,14 +1181,7 @@ static void pagetypeinfo_showfree_print(struct seq_file *m, list_for_each(curr, &area->free_list[mtype]) freecount++; seq_printf(m, "%6lu ", freecount); - #ifdef CONFIG_AMLOGIC_MEMORY_EXTEND - total += (freecount << order); - #endif /* CONFIG_AMLOGIC_MEMORY_EXTEND */ } - #ifdef CONFIG_AMLOGIC_MEMORY_EXTEND - /* show total size for each migrate type*/ - seq_printf(m, " %6lu", total); - #endif /* CONFIG_AMLOGIC_MEMORY_EXTEND */ seq_putc(m, '\n'); } } @@ -1209,9 +1196,6 @@ static int pagetypeinfo_showfree(struct seq_file *m, void *arg) seq_printf(m, "%-43s ", "Free pages count per migrate type at order"); for (order = 0; order < MAX_ORDER; ++order) seq_printf(m, "%6d ", order); -#ifdef CONFIG_AMLOGIC_MEMORY_EXTEND - seq_printf(m, "%s", " total"); -#endif /* CONFIG_AMLOGIC_MEMORY_EXTEND */ seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, pagetypeinfo_showfree_print); -- 2.7.4