dm-zoned: cleanup dmz_fixup_devices
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 07:03:48 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:46:26 +0000 (06:46 -0600)
commitfabed68c272389db85655a2933737d602f4008fb
tree27faa8fe51fd0ab746475fc7e225c6f81a5a48a8
parenta239145ad18b59338a2b6c419c1a15a0e52d1315
dm-zoned: cleanup dmz_fixup_devices

Use the bdev based helpers where applicable and move the zoned_dev
into the scope where it is actually used.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220706070350.1703384-15-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-zoned-target.c