block: use bdev based helpers in blkdev_zone_mgmt{,all}
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 07:03:46 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:46:26 +0000 (06:46 -0600)
commit375c140c199ebd2866f9c50a0b8853ffca3f1b68
tree3f30d85dbe9fb962d9a63bc0a960f7e85e498d38
parentb623e347323f6464b20fb0d899a0a73522ed8f6c
block: use bdev based helpers in blkdev_zone_mgmt{,all}

Use the bdev based helpers instead of the queue based ones to clean up
the code a bit and prepare for storing all zone related fields in
struct gendisk.

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-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c