blkcg: don't use blkg->plid in stat related functions
commitc1768268f9424410761da57ea71107acae7b03cc
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:17 +0000 (5 13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:23 +0000 (6 21:27 +0100)
treebe6a534b1a15ab9df9f23e585b039776c5a5e498
parent549d3aa872cd1aec1ee540fd93afd9611faa0def
blkcg: don't use blkg->plid in stat related functions

blkg is scheduled to be unified for all policies and thus there won't
be one-to-one mapping from blkg to policy.  Update stat related
functions to take explicit @pol or @plid arguments and not use
blkg->plid.

This is painful for now but most of specific stat interface functions
will be replaced with a handful of generic helpers.

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
block/blk-throttle.c
block/cfq-iosched.c
block/cfq.h