[Devel] [PATCH RHEL7 COMMIT] ub: zap /proc/bc/ID/slabinfo

Konstantin Khorenko khorenko at virtuozzo.com
Mon May 25 03:28:58 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.5
------>
commit 07a8568b4fcfad418f7b8487fce524088bccc5b0
Author: Vladimir Davydov <vdavydov at parallels.com>
Date:   Mon May 25 14:28:58 2015 +0400

    ub: zap /proc/bc/ID/slabinfo
    
    It was a debug file containing info about slab allocations accounted to
    a beancounter. Today, we have full featured memory.kmem.slabinfo in each
    memory cgroup, so zap the old one.
    
    Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 kernel/bc/proc.c | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/kernel/bc/proc.c b/kernel/bc/proc.c
index 075339c..59daa43 100644
--- a/kernel/bc/proc.c
+++ b/kernel/bc/proc.c
@@ -143,29 +143,6 @@ static struct bc_proc_entry bc_precharge_entry = {
 	.u.show = bc_precharge_show,
 };
 
-#if 0
-static void bc_count_slab_show_one(const char *name, int count, void *v)
-{
-	if (count != 0)
-		seq_printf((struct seq_file *)v, "%s: %u\n", name, count);
-}
-#endif
-
-static int bc_count_slab_show(struct seq_file *f, void *v)
-{
-	struct user_beancounter *ub;
-
-	ub = seq_beancounter(f);
-	//FIXME
-	//slab_walk_ub(ub, bc_count_slab_show_one, f);
-	return 0;
-}
-
-static struct bc_proc_entry bc_count_slab_entry = {
-	.name = "slabinfo",
-	.u.show = bc_count_slab_show
-};
-
 static int bc_proc_meminfo_show(struct seq_file *f, void *v)
 {
 	return meminfo_proc_show_ub(f, NULL,
@@ -854,7 +831,6 @@ static int __init ub_init_proc(void)
 	bc_register_proc_entry(&bc_debug_entry);
 #endif
 	bc_register_proc_entry(&bc_precharge_entry);
-	bc_register_proc_entry(&bc_count_slab_entry);
 //	bc_register_proc_entry(&bc_dcacheinfo_entry);
 	bc_register_proc_root_entry(&bc_all_resources_entry);
 	bc_register_proc_entry(&bc_meminfo_entry);



More information about the Devel mailing list