]> www.infradead.org Git - users/hch/block.git/commit
block: simplify show_partition
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Mar 2021 13:54:20 +0000 (14:54 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 30 Mar 2021 05:44:41 +0000 (07:44 +0200)
commit8021d13ac246a68366e36fc1f0a03c2854f025eb
tree06cd62eae9ae712f1115163bbda6cda06a32b086
parent6979565973f31e495f9d2242f366b72b49a852ed
block: simplify show_partition

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>
block/genhd.c