[Devel] [PATCH rh7] Remove container and beancounter directories from /proc/vz

Vladimir Davydov vdavydov at virtuozzo.com
Wed Jun 22 02:14:02 PDT 2016


In PCS6, cgroups were mounted there. Now they are unused, as all cgroups
are supposed to be mounted by systemd under /sys/fs/cgroup.

Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 kernel/bc/proc.c    | 1 -
 kernel/ve/veowner.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/kernel/bc/proc.c b/kernel/bc/proc.c
index 3a3b4e3f28c8..9f60d9991e0a 100644
--- a/kernel/bc/proc.c
+++ b/kernel/bc/proc.c
@@ -754,7 +754,6 @@ static int __init ub_init_proc(void)
 	entry = proc_create("user_beancounters",
 			S_IRUSR|S_ISVTX, NULL, &ub_file_operations);
 	proc_create("vswap", S_IRUSR, proc_vz_dir, &ub_vswap_fops);
-	proc_mkdir_mode("beancounter", 0, proc_vz_dir);
 	return 0;
 }
 
diff --git a/kernel/ve/veowner.c b/kernel/ve/veowner.c
index 86065072a9ca..7642191bf517 100644
--- a/kernel/ve/veowner.c
+++ b/kernel/ve/veowner.c
@@ -41,7 +41,6 @@ static void prepare_proc(void)
 	proc_vz_dir = proc_mkdir_mode("vz", S_ISVTX | S_IRUGO | S_IXUGO, NULL);
 	if (!proc_vz_dir)
 		panic("Can't create /proc/vz dir\n");
-	proc_mkdir_mode("container", 0, proc_vz_dir);
 }
 #endif
 
-- 
2.1.4



More information about the Devel mailing list