]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify printk_all_partitions
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Apr 2021 06:22:59 +0000 (08:22 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Apr 2021 16:24:36 +0000 (10:24 -0600)
commit260069e6f1979431c5a7935d28b80a7bd847654b
tree99ea4441baefd169288083814ca04e9bb6362b37
parent0480cc1c718633ab4dab556fe18b398e23e0354b
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>
Link: https://lore.kernel.org/r/20210406062303.811835-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c