]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b8a62e625881084b17fd4b48a170b2993462102
tree0b1aa4a992e6414b5ff3cb07e4979186d4dea33e
parent67ef75e68e8b89b2c2db19ccfcd152f84f7d6dfe
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