]> www.infradead.org Git - users/hch/block.git/commit
block: simplify printk_all_partitions
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Mar 2021 13:50:59 +0000 (14:50 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 17:48:04 +0000 (19:48 +0200)
commit1db6e238f0ac3e76cdc42772d2e795a1f12e9db8
treec713dc57733dc14e2cfa9d53184212ed155ceaaa
parent2abb4b68e0cb193f912a46c459f093309af9d5cb
block: simplify printk_all_partitions

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