diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-01 17:38:43 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-04-01 17:38:43 -0400 |
commit | 3a8b31d396b296df4b8594429d86d415d3409432 (patch) | |
tree | fe75761c55f91e558b5899cc284fa9b4134d8167 /block/blk-cgroup.h | |
parent | c4682aec9caaca1fcfd1dd4b59cef47af22cbdc6 (diff) |
blkcg: restructure blkio_group configruation setting
As part of userland interface restructuring, this patch updates
per-blkio_group configuration setting. Instead of funneling
everything through a master function which has hard-coded cases for
each config file it may handle, the common part is factored into
blkg_conf_prep() and blkg_conf_finish() and different configuration
setters are implemented using the helpers.
While this doesn't result in immediate LOC reduction, this enables
further cleanups and more modular implementation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index b67eefa706c3..108ffbf0d184 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -50,19 +50,6 @@ enum blkg_state_flags { | |||
50 | BLKG_empty, | 50 | BLKG_empty, |
51 | }; | 51 | }; |
52 | 52 | ||
53 | /* cgroup files owned by proportional weight policy */ | ||
54 | enum blkcg_file_name_prop { | ||
55 | BLKIO_PROP_weight_device, | ||
56 | }; | ||
57 | |||
58 | /* cgroup files owned by throttle policy */ | ||
59 | enum blkcg_file_name_throtl { | ||
60 | BLKIO_THROTL_read_bps_device, | ||
61 | BLKIO_THROTL_write_bps_device, | ||
62 | BLKIO_THROTL_read_iops_device, | ||
63 | BLKIO_THROTL_write_iops_device, | ||
64 | }; | ||
65 | |||
66 | struct blkio_cgroup { | 53 | struct blkio_cgroup { |
67 | struct cgroup_subsys_state css; | 54 | struct cgroup_subsys_state css; |
68 | unsigned int weight; | 55 | unsigned int weight; |