[Devel] [KERNEL COMMIT]: diff-ve-procvmstat-20051215
Kirill Korotaev
dev at sw.ru
Thu Dec 15 06:38:05 PST 2005
Committed in 022stab056
Patch from Pavel (xemul@):
Show /proc/vmstat entry inside vps, but keep it empty.
required for latest vmstat from RHEL4 :(
Bug #56186
-------------- next part --------------
--- ./kernel/veowner.c.vmstt 2005-12-14 16:24:14.000000000 +0300
+++ ./kernel/veowner.c 2005-12-15 15:35:17.321904352 +0300
@@ -97,6 +97,7 @@ static void prepare_proc_misc(void)
"vz",
"user_beancounters",
"cmdline",
+ "vmstat",
NULL,
};
char **p;
--- ./mm/page_alloc.c.vmstt 2005-12-14 16:24:14.000000000 +0300
+++ ./mm/page_alloc.c 2005-12-15 16:22:02.789408464 +0300
@@ -1756,6 +1756,9 @@ static void *vmstat_start(struct seq_fil
{
struct page_state *ps;
+ if (!ve_is_super(get_exec_env()))
+ return NULL;
+
if (*pos >= ARRAY_SIZE(vmstat_text))
return NULL;
More information about the Devel
mailing list