[Devel] [PATCH RHEL7 COMMIT] ve: zap legacy_name_to_veid
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Jun 4 06:07:20 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.9
------>
commit 5308f3abd7057d1ec87ab1bbf7dbd3085fe3d0c4
Author: Vladimir Davydov <vdavydov at parallels.com>
Date: Thu Jun 4 17:07:20 2015 +0400
ve: zap legacy_name_to_veid
This function is not used anywhere.
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
include/linux/ve_proto.h | 1 -
kernel/ve/ve.c | 13 -------------
2 files changed, 14 deletions(-)
diff --git a/include/linux/ve_proto.h b/include/linux/ve_proto.h
index 3206dd8..7da0c65 100644
--- a/include/linux/ve_proto.h
+++ b/include/linux/ve_proto.h
@@ -38,7 +38,6 @@ static inline bool ve_is_super(struct ve_struct *ve)
const char *ve_name(struct ve_struct *ve);
void legacy_veid_to_name(envid_t veid, char *name);
-int legacy_name_to_veid(const char *name, envid_t *veid);
/* must be called under rcu_read_lock if task != current */
const char *task_ve_name(struct task_struct *task);
diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index c381208..b787e7e 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -199,19 +199,6 @@ int ve_cgroup_remove(struct cgroup *root, envid_t veid)
}
EXPORT_SYMBOL(ve_cgroup_remove);
-int legacy_name_to_veid(const char *name, envid_t *veid)
-{
- envid_t tmp;
-
- if (sscanf(name, "%d", &tmp) == 1) {
- *veid = tmp;
- return 0;
- } else {
- return -1;
- }
-}
-EXPORT_SYMBOL(legacy_name_to_veid);
-
/* under rcu_read_lock if task != current */
const char *task_ve_name(struct task_struct *task)
{
More information about the Devel
mailing list