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-cgroup.h | |
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-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index c772581c9011..26949731108f 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -117,11 +117,12 @@ extern void blkio_policy_register(struct blkio_policy_type *); | |||
117 | extern void blkio_policy_unregister(struct blkio_policy_type *); | 117 | extern void blkio_policy_unregister(struct blkio_policy_type *); |
118 | extern void blkg_destroy_all(struct request_queue *q, bool destroy_root); | 118 | extern void blkg_destroy_all(struct request_queue *q, bool destroy_root); |
119 | extern void update_root_blkg_pd(struct request_queue *q, | 119 | extern void update_root_blkg_pd(struct request_queue *q, |
120 | enum blkio_policy_id plid); | 120 | const struct blkio_policy_type *pol); |
121 | 121 | ||
122 | void blkcg_print_blkgs(struct seq_file *sf, struct blkio_cgroup *blkcg, | 122 | void blkcg_print_blkgs(struct seq_file *sf, struct blkio_cgroup *blkcg, |
123 | u64 (*prfill)(struct seq_file *, void *, int), | 123 | u64 (*prfill)(struct seq_file *, void *, int), |
124 | int pol, int data, bool show_total); | 124 | const struct blkio_policy_type *pol, int data, |
125 | bool show_total); | ||
125 | u64 __blkg_prfill_u64(struct seq_file *sf, void *pdata, u64 v); | 126 | u64 __blkg_prfill_u64(struct seq_file *sf, void *pdata, u64 v); |
126 | u64 __blkg_prfill_rwstat(struct seq_file *sf, void *pdata, | 127 | u64 __blkg_prfill_rwstat(struct seq_file *sf, void *pdata, |
127 | const struct blkg_rwstat *rwstat); | 128 | const struct blkg_rwstat *rwstat); |
@@ -333,7 +334,7 @@ static inline void blkio_policy_unregister(struct blkio_policy_type *blkiop) { } | |||
333 | static inline void blkg_destroy_all(struct request_queue *q, | 334 | static inline void blkg_destroy_all(struct request_queue *q, |
334 | bool destory_root) { } | 335 | bool destory_root) { } |
335 | static inline void update_root_blkg_pd(struct request_queue *q, | 336 | static inline void update_root_blkg_pd(struct request_queue *q, |
336 | enum blkio_policy_id plid) { } | 337 | const struct blkio_policy_type *pol) { } |
337 | 338 | ||
338 | static inline void *blkg_to_pdata(struct blkio_group *blkg, | 339 | static inline void *blkg_to_pdata(struct blkio_group *blkg, |
339 | struct blkio_policy_type *pol) { return NULL; } | 340 | struct blkio_policy_type *pol) { return NULL; } |