blkcg: make blkg->pd an array and move configuration and stats into it
commit549d3aa872cd1aec1ee540fd93afd9611faa0def
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:16 +0000 (5 13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:23 +0000 (6 21:27 +0100)
tree27c3703d3448dc0be9f58b5f01224ae901422a32
parent1adaf3dde37a8b9b59ea59c5f58fed7761178383
blkcg: make blkg->pd an array and move configuration and stats into it

To prepare for unifying blkgs for different policies, make blkg->pd an
array with BLKIO_NR_POLICIES elements and move blkg->conf, ->stats,
and ->stats_cpu into blkg_policy_data.

This patch doesn't introduce 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>
block/blk-cgroup.c
block/blk-cgroup.h