aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.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-cgroup.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-cgroup.c')
-rw-r--r--block/blk-cgroup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index 4fdeb46b4436..55ccbae6c434 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -568,7 +568,6 @@ static struct blkio_group *blkg_alloc(struct blkio_cgroup *blkcg,
568 568
569struct blkio_group *blkg_lookup_create(struct blkio_cgroup *blkcg, 569struct blkio_group *blkg_lookup_create(struct blkio_cgroup *blkcg,
570 struct request_queue *q, 570 struct request_queue *q,
571 enum blkio_policy_id plid,
572 bool for_root) 571 bool for_root)
573 __releases(q->queue_lock) __acquires(q->queue_lock) 572 __releases(q->queue_lock) __acquires(q->queue_lock)
574{ 573{
@@ -1027,7 +1026,7 @@ static int blkio_policy_parse_and_set(char *buf, enum blkio_policy_id plid,
1027 rcu_read_lock(); 1026 rcu_read_lock();
1028 1027
1029 spin_lock_irq(disk->queue->queue_lock); 1028 spin_lock_irq(disk->queue->queue_lock);
1030 blkg = blkg_lookup_create(blkcg, disk->queue, plid, false); 1029 blkg = blkg_lookup_create(blkcg, disk->queue, false);
1031 spin_unlock_irq(disk->queue->queue_lock); 1030 spin_unlock_irq(disk->queue->queue_lock);
1032 1031
1033 if (IS_ERR(blkg)) { 1032 if (IS_ERR(blkg)) {