summaryrefslogtreecommitdiffstats
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-04-13 13:11:27 -0700
committerJens Axboe <axboe@kernel.dk>2012-04-20 10:06:06 +0200
commitec399347d39fb2337ebace928cf4a2855bd0ec37 (patch)
treed95efeb004e8da914f7d3c726cd059b422443694 /block/blk-throttle.c
parentbc0d6501a844392ab6ad419d7ca5af4693b6afac (diff)
downloadlinux-ec399347d39fb2337ebace928cf4a2855bd0ec37.tar.gz
linux-ec399347d39fb2337ebace928cf4a2855bd0ec37.tar.bz2
linux-ec399347d39fb2337ebace928cf4a2855bd0ec37.zip
blkcg: use @pol instead of @plid in update_root_blkg_pd() and blkcg_print_blkgs()
The two functions were taking "enum blkio_policy_id plid". Make them take "const struct blkio_policy_type *pol" instead. This is to prepare for per-queue policy activation and doesn't cause any functional difference. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-throttle.c')
-rw-r--r--block/blk-throttle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 60240142f5ae..07c17c27a628 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -946,7 +946,7 @@ static int tg_print_cpu_rwstat(struct cgroup *cgrp, struct cftype *cft,
{
struct blkio_cgroup *blkcg = cgroup_to_blkio_cgroup(cgrp);
- blkcg_print_blkgs(sf, blkcg, tg_prfill_cpu_rwstat, BLKIO_POLICY_THROTL,
+ blkcg_print_blkgs(sf, blkcg, tg_prfill_cpu_rwstat, &blkio_policy_throtl,
cft->private, true);
return 0;
}
@@ -973,7 +973,7 @@ static int tg_print_conf_u64(struct cgroup *cgrp, struct cftype *cft,
struct seq_file *sf)
{
blkcg_print_blkgs(sf, cgroup_to_blkio_cgroup(cgrp), tg_prfill_conf_u64,
- BLKIO_POLICY_THROTL, cft->private, false);
+ &blkio_policy_throtl, cft->private, false);
return 0;
}
@@ -981,7 +981,7 @@ static int tg_print_conf_uint(struct cgroup *cgrp, struct cftype *cft,
struct seq_file *sf)
{
blkcg_print_blkgs(sf, cgroup_to_blkio_cgroup(cgrp), tg_prfill_conf_uint,
- BLKIO_POLICY_THROTL, cft->private, false);
+ &blkio_policy_throtl, cft->private, false);
return 0;
}