diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-13 16:11:27 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-04-20 04:06:06 -0400 |
commit | ec399347d39fb2337ebace928cf4a2855bd0ec37 (patch) | |
tree | d95efeb004e8da914f7d3c726cd059b422443694 /block/blk-throttle.c | |
parent | bc0d6501a844392ab6ad419d7ca5af4693b6afac (diff) |
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.c | 6 |
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, | |||
946 | { | 946 | { |
947 | struct blkio_cgroup *blkcg = cgroup_to_blkio_cgroup(cgrp); | 947 | struct blkio_cgroup *blkcg = cgroup_to_blkio_cgroup(cgrp); |
948 | 948 | ||
949 | blkcg_print_blkgs(sf, blkcg, tg_prfill_cpu_rwstat, BLKIO_POLICY_THROTL, | 949 | blkcg_print_blkgs(sf, blkcg, tg_prfill_cpu_rwstat, &blkio_policy_throtl, |
950 | cft->private, true); | 950 | cft->private, true); |
951 | return 0; | 951 | return 0; |
952 | } | 952 | } |
@@ -973,7 +973,7 @@ static int tg_print_conf_u64(struct cgroup *cgrp, struct cftype *cft, | |||
973 | struct seq_file *sf) | 973 | struct seq_file *sf) |
974 | { | 974 | { |
975 | blkcg_print_blkgs(sf, cgroup_to_blkio_cgroup(cgrp), tg_prfill_conf_u64, | 975 | blkcg_print_blkgs(sf, cgroup_to_blkio_cgroup(cgrp), tg_prfill_conf_u64, |
976 | BLKIO_POLICY_THROTL, cft->private, false); | 976 | &blkio_policy_throtl, cft->private, false); |
977 | return 0; | 977 | return 0; |
978 | } | 978 | } |
979 | 979 | ||
@@ -981,7 +981,7 @@ static int tg_print_conf_uint(struct cgroup *cgrp, struct cftype *cft, | |||
981 | struct seq_file *sf) | 981 | struct seq_file *sf) |
982 | { | 982 | { |
983 | blkcg_print_blkgs(sf, cgroup_to_blkio_cgroup(cgrp), tg_prfill_conf_uint, | 983 | blkcg_print_blkgs(sf, cgroup_to_blkio_cgroup(cgrp), tg_prfill_conf_uint, |
984 | BLKIO_POLICY_THROTL, cft->private, false); | 984 | &blkio_policy_throtl, cft->private, false); |
985 | return 0; | 985 | return 0; |
986 | } | 986 | } |
987 | 987 | ||