diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-16 13:57:26 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-04-20 10:06:17 +0200 |
commit | f95a04afa80c0f4ddd645ef6a84ed118b5d1ad46 (patch) | |
tree | 2428dacf9bab1eb643628c872aed3092704f7fb2 /include/asm-generic/timex.h | |
parent | 3c798398e393e5f9502dbab2b51e6c25e2e8f2ac (diff) | |
download | blackbird-obmc-linux-f95a04afa80c0f4ddd645ef6a84ed118b5d1ad46.tar.gz blackbird-obmc-linux-f95a04afa80c0f4ddd645ef6a84ed118b5d1ad46.zip |
blkcg: embed struct blkg_policy_data in policy specific data
Currently blkg_policy_data carries policy specific data as char flex
array instead of being embedded in policy specific data. This was
forced by oddities around blkg allocation which are all gone now.
This patch makes blkg_policy_data embedded in policy specific data -
throtl_grp and cfq_group so that it's more conventional and consistent
with how io_cq is handled.
* blkcg_policy->pdata_size is renamed to ->pd_size.
* Functions which used to take void *pdata now takes struct
blkg_policy_data *pd.
* blkg_to_pdata/pdata_to_blkg() updated to blkg_to_pd/pd_to_blkg().
* Dummy struct blkg_policy_data definition added. Dummy
pdata_to_blkg() definition was unused and inconsistent with the
non-dummy version - correct dummy pd_to_blkg() added.
* throtl and cfq updated accordingly.
* As dummy blkg_to_pd/pd_to_blkg() are provided,
blkg_to_cfqg/cfqg_to_blkg() don't need to be ifdef'd. Moved outside
ifdef block.
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 'include/asm-generic/timex.h')
0 files changed, 0 insertions, 0 deletions