• T
    blkcg: restructure blkio_get_stat() · c4c76a05
    Tejun Heo 提交于
    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: NTejun Heo <tj@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    c4c76a05
blk-cgroup.c 45.8 KB