block: replace blkdev_nr_zones with bdev_nr_zones
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 07:03:45 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:46:26 +0000 (06:46 -0600)
commitb623e347323f6464b20fb0d899a0a73522ed8f6c
tree0b1aa4a992e6414b5ff3cb07e4979186d4dea33e
parent982977df48179c8c690868f398051074e68eef0f
block: replace blkdev_nr_zones with bdev_nr_zones

Pass a block_device instead of a request_queue as that is what most
callers have at hand.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Link: https://lore.kernel.org/r/20220706070350.1703384-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c
block/ioctl.c
drivers/block/null_blk/zoned.c
drivers/md/dm-zone.c
drivers/md/dm-zoned-target.c
drivers/nvme/target/zns.c
fs/zonefs/super.c
include/linux/blkdev.h