]> 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)
commit2461a344e96ee85bcf91f837c52a3deadc8d2f92
treeaff92d89b60e3c2e844d7dacc29049f216a0acf3
parentc79f806bf1ea206cbc8fca6fc9f2f6a24cc0b8c5
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