aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-04-01 17:38:42 -0400
committerTejun Heo <tj@kernel.org>2012-04-01 17:38:42 -0400
commitaaec55a002a29bf940588dc03253099a4cd543bf (patch)
tree2fb146599db30c25abca72e52516d1c5f2c4e21e /block/blk-throttle.c
parent959d851caa48829eb85cb85aa949fd6b4c5d5bc6 (diff)
blkcg: remove unused @pol and @plid parameters
@pol to blkg_to_pdata() and @plid to blkg_lookup_create() are no longer necessary. Drop them. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'block/blk-throttle.c')
-rw-r--r--block/blk-throttle.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 4ba141820a2e..1cc6c23de2c1 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -107,7 +107,7 @@ static inline struct throtl_grp *blkg_to_tg(struct blkio_group *blkg)
107 107
108static inline struct blkio_group *tg_to_blkg(struct throtl_grp *tg) 108static inline struct blkio_group *tg_to_blkg(struct throtl_grp *tg)
109{ 109{
110 return pdata_to_blkg(tg, &blkio_policy_throtl); 110 return pdata_to_blkg(tg);
111} 111}
112 112
113enum tg_state_flags { 113enum tg_state_flags {
@@ -185,7 +185,7 @@ static struct throtl_grp *throtl_lookup_create_tg(struct throtl_data *td,
185 } else { 185 } else {
186 struct blkio_group *blkg; 186 struct blkio_group *blkg;
187 187
188 blkg = blkg_lookup_create(blkcg, q, BLKIO_POLICY_THROTL, false); 188 blkg = blkg_lookup_create(blkcg, q, false);
189 189
190 /* if %NULL and @q is alive, fall back to root_tg */ 190 /* if %NULL and @q is alive, fall back to root_tg */
191 if (!IS_ERR(blkg)) 191 if (!IS_ERR(blkg))
@@ -1033,8 +1033,7 @@ int blk_throtl_init(struct request_queue *q)
1033 rcu_read_lock(); 1033 rcu_read_lock();
1034 spin_lock_irq(q->queue_lock); 1034 spin_lock_irq(q->queue_lock);
1035 1035
1036 blkg = blkg_lookup_create(&blkio_root_cgroup, q, BLKIO_POLICY_THROTL, 1036 blkg = blkg_lookup_create(&blkio_root_cgroup, q, true);
1037 true);
1038 if (!IS_ERR(blkg)) 1037 if (!IS_ERR(blkg))
1039 td->root_tg = blkg_to_tg(blkg); 1038 td->root_tg = blkg_to_tg(blkg);
1040 1039