aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <koct9i@gmail.com>2015-04-14 15:45:32 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-14 16:49:01 -0700
commit761b06771adeeb734e9eebc6f70f916cb9e2f643 (patch)
tree0d782b6eb7071af9530cd693854d2f3ab32d9d4d /mm/page_alloc.c
parentmm: hide per-cpu lists in output of show_mem() (diff)
downloadlinux-dev-761b06771adeeb734e9eebc6f70f916cb9e2f643.tar.xz
linux-dev-761b06771adeeb734e9eebc6f70f916cb9e2f643.zip
mm: completely remove dumping per-cpu lists from show_mem()
It seems nobody needs this. Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index eab8e2018a46..84466a4b1b36 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3255,7 +3255,6 @@ static void show_migration_types(unsigned char type)
* Bits in @filter:
* SHOW_MEM_FILTER_NODES: suppress nodes that are not allowed by current's
* cpuset.
- * SHOW_MEM_PERCPU_LISTS: display full per-node per-cpu pcp lists
*/
void show_free_areas(unsigned int filter)
{
@@ -3267,25 +3266,8 @@ void show_free_areas(unsigned int filter)
if (skip_free_areas_node(filter, zone_to_nid(zone)))
continue;
- if (filter & SHOW_MEM_PERCPU_LISTS) {
- show_node(zone);
- printk("%s per-cpu:\n", zone->name);
- }
-
- for_each_online_cpu(cpu) {
- struct per_cpu_pageset *pageset;
-
- pageset = per_cpu_ptr(zone->pageset, cpu);
-
- free_pcp += pageset->pcp.count;
-
- if (!(filter & SHOW_MEM_PERCPU_LISTS))
- continue;
-
- printk("CPU %4d: hi:%5d, btch:%4d usd:%4d\n",
- cpu, pageset->pcp.high,
- pageset->pcp.batch, pageset->pcp.count);
- }
+ for_each_online_cpu(cpu)
+ free_pcp += per_cpu_ptr(zone->pageset, cpu)->pcp.count;
}
printk("active_anon:%lu inactive_anon:%lu isolated_anon:%lu\n"