aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.h
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.h
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.h')
-rw-r--r--block/blk-cgroup.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index 1cb8f7643258..1add3dcfc19d 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -266,13 +266,10 @@ static inline void *blkg_to_pdata(struct blkio_group *blkg,
266/** 266/**
267 * pdata_to_blkg - get blkg associated with policy private data 267 * pdata_to_blkg - get blkg associated with policy private data
268 * @pdata: policy private data of interest 268 * @pdata: policy private data of interest
269 * @pol: policy @pdata is for
270 * 269 *
271 * @pdata is policy private data for @pol. Determine the blkg it's 270 * @pdata is policy private data. Determine the blkg it's associated with.
272 * associated with.
273 */ 271 */
274static inline struct blkio_group *pdata_to_blkg(void *pdata, 272static inline struct blkio_group *pdata_to_blkg(void *pdata)
275 struct blkio_policy_type *pol)
276{ 273{
277 if (pdata) { 274 if (pdata) {
278 struct blkg_policy_data *pd = 275 struct blkg_policy_data *pd =
@@ -402,7 +399,6 @@ extern struct blkio_group *blkg_lookup(struct blkio_cgroup *blkcg,
402 struct request_queue *q); 399 struct request_queue *q);
403struct blkio_group *blkg_lookup_create(struct blkio_cgroup *blkcg, 400struct blkio_group *blkg_lookup_create(struct blkio_cgroup *blkcg,
404 struct request_queue *q, 401 struct request_queue *q,
405 enum blkio_policy_id plid,
406 bool for_root); 402 bool for_root);
407void blkiocg_update_timeslice_used(struct blkio_group *blkg, 403void blkiocg_update_timeslice_used(struct blkio_group *blkg,
408 struct blkio_policy_type *pol, 404 struct blkio_policy_type *pol,