[Devel] [PATCH rh7] ve: zap ve_glob_meminfo
Vladimir Davydov
vdavydov at parallels.com
Tue Jun 30 03:30:19 PDT 2015
It is not used anywhere. Anyway, if one wants to show global meminfo
inside a ve, he can bind the ve beancounter to the root memory cgroup by
echoing '/' to /sys/fs/cgroup/beancounter/$VEID/beancounter.memory, so
this knob does not worth resurrecting.
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
include/linux/ve.h | 1 -
kernel/sysctl.c | 7 -------
kernel/ve/ve.c | 1 -
3 files changed, 9 deletions(-)
diff --git a/include/linux/ve.h b/include/linux/ve.h
index 9bbf352705d2..6adeffa9c268 100644
--- a/include/linux/ve.h
+++ b/include/linux/ve.h
@@ -167,7 +167,6 @@ extern const void *ve_namespace(struct device *dev);
extern struct kmapset_set ve_sysfs_perms;
-extern int glob_ve_meminfo;
extern int ve_allow_kthreads;
extern int vz_security_family_check(struct net *net, int family);
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 23801361c0aa..db6c4e6b237c 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -827,13 +827,6 @@ static struct ctl_table kern_table[] = {
#endif
#ifdef CONFIG_VE
{
- .procname = "ve_meminfo",
- .data = &glob_ve_meminfo,
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = &proc_dointvec,
- },
- {
.procname = "ve_allow_kthreads",
.data = &ve_allow_kthreads,
.maxlen = sizeof(int),
diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index 8bbba1f7f6cb..07c06527b659 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -56,7 +56,6 @@ struct module no_module = { .state = MODULE_STATE_GOING };
EXPORT_SYMBOL(no_module);
#endif
-int glob_ve_meminfo = 0;
int ve_allow_kthreads = 1;
struct kmapset_set ve_sysfs_perms;
--
2.1.4
More information about the Devel
mailing list