]> git.baikalelectronics.ru Git - kernel.git/commit
block: Improve blk_revalidate_disk_zones() checks
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 11 Nov 2020 07:36:06 +0000 (16:36 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Dec 2020 00:34:21 +0000 (17:34 -0700)
commite5c9d633f29b79d34a85bcca05a0b136ad6384f2
treeaff92d89b60e3c2e844d7dacc29049f216a0acf3
parent1f774d38e324859fd0a52e2a8a181c00085b99c4
block: Improve blk_revalidate_disk_zones() checks

Improves the checks on the zones of a zoned block device done in
blk_revalidate_disk_zones() by making sure that the device report_zones
method did report at least one zone and that the zones reported exactly
cover the entire disk capacity, that is, that there are no missing zones
at the end of the disk sector range.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c