aboutsummaryrefslogtreecommitdiffstats
path: root/block/elevator.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-03-08 10:53:59 -0800
committerJens Axboe <axboe@kernel.dk>2012-03-20 12:45:37 +0100
commitc4c76a05382c7d05e0b911daa58a827399e9ba1a (patch)
treee89f1edb9890a4b857f75dbdb4a0fb77d9aafa59 /block/elevator.c
parentblkcg: simplify stat reset (diff)
downloadlinux-dev-c4c76a05382c7d05e0b911daa58a827399e9ba1a.tar.xz
linux-dev-c4c76a05382c7d05e0b911daa58a827399e9ba1a.zip
blkcg: restructure blkio_get_stat()
Restructure blkio_get_stat() to prepare for removal of stats_lock. * Define BLKIO_STAT_ARR_NR explicitly to denote which stats have subtypes instead of using BLKIO_STAT_QUEUED. * Separate out stat acquisition and printing. After this, there are only two users of blkio_fill_stat(). Just open code it. * The code was mixing MAX_KEY_LEN and MAX_KEY_LEN - 1. There's no need to subtract one. Use MAX_KEY_LEN consistently. 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 'block/elevator.c')
0 files changed, 0 insertions, 0 deletions