[Devel] [PATCH vz8 1/2] ve: remove /proc/fairsched(, 2) and /proc/vz/fairsched #PSBM-79882

Denis V. Lunev den at openvz.org
Mon Apr 5 20:37:01 MSK 2021


These files are legacy and are not used anymore. Dropping.

Signed-off-by: Denis V. Lunev <den at openvz.org>
---
 kernel/ve/veowner.c | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/kernel/ve/veowner.c b/kernel/ve/veowner.c
index da9fd60e5282..d7b3b94bd3e6 100644
--- a/kernel/ve/veowner.c
+++ b/kernel/ve/veowner.c
@@ -21,23 +21,6 @@ EXPORT_SYMBOL(proc_vz_dir);
 struct proc_dir_entry *bc_proc_root;
 EXPORT_SYMBOL(bc_proc_root);
 
-static int proc_fairsched_open(struct inode *inode, struct file *file)
-{
-	return 0;
-}
-
-static ssize_t proc_fairsched_read(struct file *file, char __user *buf,
-				   size_t size, loff_t *ppos)
-{
-	return 0;
-}
-
-static struct file_operations proc_fairsched_operations = {
-	.open		= proc_fairsched_open,
-	.read		= proc_fairsched_read,
-	.llseek		= noop_llseek,
-};
-
 static void prepare_proc(void)
 {
 	proc_vz_dir = proc_mkdir_mode("vz", S_ISVTX | S_IRUGO | S_IXUGO, NULL);
@@ -47,14 +30,6 @@ static void prepare_proc(void)
 	bc_proc_root = proc_mkdir_mode("bc", 0, NULL);
         if (!bc_proc_root)
                 panic("Can't create /proc/bc entry");
-
-
-	/* Legacy files. They are not really needed and should be removed
-	 * sooner or later, but leave the stubs for now as they may be required
-	 * by userspace: https://jira.sw.ru/browse/PSBM-79882 */
-
-	proc_create("fairsched", S_ISVTX, NULL,	&proc_fairsched_operations);
-	proc_create("fairsched2", S_ISVTX, NULL, &proc_fairsched_operations);
 }
 #endif
 
-- 
2.27.0



More information about the Devel mailing list