[Devel] [PATCH rh7 1/2] ve: drop ve_cgroup_open and ve_cgroup_remove
Vladimir Davydov
vdavydov at virtuozzo.com
Wed Jun 22 02:13:30 PDT 2016
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 8cc7fe3ba2a3..d2dc12d2f2c2 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 2459cb53a665..9995dbcd1623 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -156,27 +156,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)
{
--
2.1.4
More information about the Devel
mailing list