[Devel] [PATCH rh7 2/7] ub: zap ub_{init,fini}_ioprio

Vladimir Davydov vdavydov at parallels.com
Tue Jun 9 07:06:43 PDT 2015


These methods were used in RH6 to associate a blkio cgroup with a
beancounter. Actually, we already have such an association,
user_beancounter->blkio_css, so we do not longer need them.

Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 include/bc/beancounter.h |  3 ---
 kernel/bc/io_prio.c      | 10 ----------
 2 files changed, 13 deletions(-)

diff --git a/include/bc/beancounter.h b/include/bc/beancounter.h
index 340d09727baa..2e1e26922230 100644
--- a/include/bc/beancounter.h
+++ b/include/bc/beancounter.h
@@ -513,9 +513,6 @@ void ub_precharge_snapshot(struct user_beancounter *ub, int *precharge);
 #define UB_IOPRIO_MIN 0
 #define UB_IOPRIO_MAX 8
 
-extern void ub_init_ioprio(struct user_beancounter *ub);
-extern void ub_fini_ioprio(struct user_beancounter *ub);
-
 #endif /* CONFIG_BEANCOUNTERS */
 
 #ifdef CONFIG_BC_IO_PRIORITY
diff --git a/kernel/bc/io_prio.c b/kernel/bc/io_prio.c
index 83d34241a73a..f51553c236cc 100644
--- a/kernel/bc/io_prio.c
+++ b/kernel/bc/io_prio.c
@@ -16,16 +16,6 @@
 
 //static u64 ioprio_weight[UB_IOPRIO_MAX] = {320, 365, 410, 460, 500, 550, 600, 640};
 
-void ub_init_ioprio(struct user_beancounter *ub)
-{
-	//blkio_cgroup_set_ub(ub->blkio_cgroup, ub);
-}
-
-void ub_fini_ioprio(struct user_beancounter *ub)
-{
-	//blkio_cgroup_set_ub(ub->blkio_cgroup, &ub0);
-}
-
 int ub_set_ioprio(int id, int ioprio)
 {
 	struct user_beancounter *ub;
-- 
2.1.4




More information about the Devel mailing list