[Devel] [PATCH RHEL7 COMMIT] ve: drop ve_cgroup_open and ve_cgroup_remove

Konstantin Khorenko khorenko at virtuozzo.com
Thu Aug 11 02:41:43 PDT 2016


The commit is pushed to "branch-rh7-3.10.0-327.22.2.vz7.16.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.22.2.vz7.16.5
------>
commit 146047ebfc478a6d9bb6f41e439b07dec59edc2a
Author: Vladimir Davydov <vdavydov at virtuozzo.com>
Date:   Thu Aug 11 13:41:43 2016 +0400

    ve: drop ve_cgroup_open and ve_cgroup_remove
    
    Fairsched was the last user of these functions. After it's gone, we
    don't need them any longer.
    
    Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 include/linux/ve_proto.h |  2 --
 kernel/ve/ve.c           | 21 ---------------------
 2 files changed, 23 deletions(-)

diff --git a/include/linux/ve_proto.h b/include/linux/ve_proto.h
index 8cc7fe3..d2dc12d 100644
--- a/include/linux/ve_proto.h
+++ b/include/linux/ve_proto.h
@@ -50,8 +50,6 @@ extern struct list_head ve_list_head;
 #define for_each_ve(ve)	list_for_each_entry((ve), &ve_list_head, ve_list)
 extern struct mutex ve_list_lock;
 extern struct ve_struct *get_ve_by_id(envid_t);
-extern struct cgroup *ve_cgroup_open(struct cgroup *root, int flags, envid_t veid);
-extern int ve_cgroup_remove(struct cgroup *root, envid_t veid);
 
 extern int nr_threads_ve(struct ve_struct *ve);
 
diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index f6fca74..0461790 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -158,27 +158,6 @@ const char *ve_name(struct ve_struct *ve)
 }
 EXPORT_SYMBOL(ve_name);
 
-/* Cgroup must be closed with cgroup_kernel_close */
-struct cgroup *ve_cgroup_open(struct cgroup *root, int flags, envid_t veid)
-{
-	char name[16];
-	struct cgroup *cgrp;
-
-	snprintf(name, sizeof(name), "%u", veid);
-	cgrp = cgroup_kernel_open(root, flags, name);
-	return cgrp ? cgrp : ERR_PTR(-ENOENT);
-}
-EXPORT_SYMBOL(ve_cgroup_open);
-
-int ve_cgroup_remove(struct cgroup *root, envid_t veid)
-{
-	char name[16];
-
-	snprintf(name, sizeof(name), "%u", veid);
-	return cgroup_kernel_remove(root, name);
-}
-EXPORT_SYMBOL(ve_cgroup_remove);
-
 /* under rcu_read_lock if task != current */
 const char *task_ve_name(struct task_struct *task)
 {


More information about the Devel mailing list