diff options
author | Christoph Hellwig <hch@lst.de> | 2021-04-06 09:23:01 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-08 19:24:36 +0300 |
commit | 7fae67cc9c0e0645e8c82156ba3a8bb7bae995bb (patch) | |
tree | 18a0fd40bac57da2623d615acccaaacd9ffa11c8 /include/linux/genhd.h | |
parent | ecc75a98b89917f18f295e154cd0bf056481c48f (diff) | |
download | linux-7fae67cc9c0e0645e8c82156ba3a8bb7bae995bb.tar.xz |
block: simplify diskstats_show
Just use xa_for_each to iterate over the partitions as there is no need
to grab a reference to each partition.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210406062303.811835-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/genhd.h')
0 files changed, 0 insertions, 0 deletions