block: use bdev_is_zoned instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 07:03:37 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:46:25 +0000 (06:46 -0600)
commitedd1dbc83b1de3b98590b76e09b86ddf6887fce7
treef6362103f2356fe4e6a0095e0363dfcbc2ff266e
parent6cc37a672a1e21245b931722a016b3bd4ae10e2d
block: use bdev_is_zoned instead of open coding it

Use bdev_is_zoned in all places where a block_device is available instead
of open coding it.

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-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-core.c
block/blk-mq.h
block/blk-zoned.c
drivers/md/dm-table.c
drivers/md/dm-zone.c
drivers/md/dm.c