]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: make blkg->pd an array and move configuration and stats into it
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:16 +0000 (13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:23 +0000 (21:27 +0100)
commitfe96ce4bab42e7c151d56b12c8c89cfcd5cba4fd
tree27c3703d3448dc0be9f58b5f01224ae901422a32
parent138df67a5b32ef22e4d051d3ca71036a1bb17660
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