]> www.infradead.org Git - users/hch/block.git/commit
null_blk: Do not set disk->nr_zones
authorDamien Le Moal <dlemoal@kernel.org>
Fri, 21 Jun 2024 03:15:04 +0000 (12:15 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Jun 2024 14:26:35 +0000 (08:26 -0600)
commit4ac9056e4bd787f1ba2001167c5acc2b5a75ddf9
tree342765e41aed9f42a0ad9255bed8ec3c73c7cdb5
parent5f9bbea02f06110ec5cf95a3327019b3194b2d80
null_blk: Do not set disk->nr_zones

In null_register_zoned_dev(), there is no need to set disk->nr_zones as
the now uncoditional call to blk_revalidate_disk_zones() will do that.
So remove the assignment using bdev_nr_zones().

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20240621031506.759397-2-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/zoned.c