diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-01 17:38:44 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-04-01 17:38:44 -0400 |
commit | 9ade5ea4ce57d3596eaee6a57cd212a483674058 (patch) | |
tree | cad2cc4ecb116f114cc73098b1704a47d82edd18 /block/blk-cgroup.h | |
parent | 41b38b6d540f951c49315d8573e6f6195a6e736d (diff) |
blkcg: add blkio_policy_ops operations for exit and stat reset
Add blkio_policy_ops->blkio_exit_group_fn() and
->blkio_reset_group_stats_fn(). These will be used to further
modularize blkcg policy implementation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index c82de47ae69f..d0ee649e8bbb 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -153,9 +153,13 @@ struct blkio_group { | |||
153 | }; | 153 | }; |
154 | 154 | ||
155 | typedef void (blkio_init_group_fn)(struct blkio_group *blkg); | 155 | typedef void (blkio_init_group_fn)(struct blkio_group *blkg); |
156 | typedef void (blkio_exit_group_fn)(struct blkio_group *blkg); | ||
157 | typedef void (blkio_reset_group_stats_fn)(struct blkio_group *blkg); | ||
156 | 158 | ||
157 | struct blkio_policy_ops { | 159 | struct blkio_policy_ops { |
158 | blkio_init_group_fn *blkio_init_group_fn; | 160 | blkio_init_group_fn *blkio_init_group_fn; |
161 | blkio_exit_group_fn *blkio_exit_group_fn; | ||
162 | blkio_reset_group_stats_fn *blkio_reset_group_stats_fn; | ||
159 | }; | 163 | }; |
160 | 164 | ||
161 | struct blkio_policy_type { | 165 | struct blkio_policy_type { |