aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-04-16 16:57:27 -0400
committerJens Axboe <axboe@kernel.dk>2012-04-20 04:06:17 -0400
commitf9fcc2d3919b8eb575b3cee9274feefafb641bca (patch)
treebb3eaeb993b21ba352c0967488a6955a40314d97 /block/blk-throttle.c
parentf95a04afa80c0f4ddd645ef6a84ed118b5d1ad46 (diff)
blkcg: collapse blkcg_policy_ops into blkcg_policy
There's no reason to keep blkcg_policy_ops separate. Collapse it into blkcg_policy. This patch doesn't introduce any functional change. 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.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 6a0a17a83862..46310ec93d1c 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -1100,13 +1100,12 @@ static void throtl_shutdown_wq(struct request_queue *q)
1100} 1100}
1101 1101
1102static struct blkcg_policy blkcg_policy_throtl = { 1102static struct blkcg_policy blkcg_policy_throtl = {
1103 .ops = { 1103 .pd_size = sizeof(struct throtl_grp),
1104 .pd_init_fn = throtl_pd_init, 1104 .cftypes = throtl_files,
1105 .pd_exit_fn = throtl_pd_exit, 1105
1106 .pd_reset_stats_fn = throtl_pd_reset_stats, 1106 .pd_init_fn = throtl_pd_init,
1107 }, 1107 .pd_exit_fn = throtl_pd_exit,
1108 .pd_size = sizeof(struct throtl_grp), 1108 .pd_reset_stats_fn = throtl_pd_reset_stats,
1109 .cftypes = throtl_files,
1110}; 1109};
1111 1110
1112bool blk_throtl_bio(struct request_queue *q, struct bio *bio) 1111bool blk_throtl_bio(struct request_queue *q, struct bio *bio)