]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
block: cleanup the !zoned case in blk_revalidate_disk_zones
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 02:39:23 +0000 (11:39 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Nov 2019 02:11:54 +0000 (19:11 -0700)
commitc98c3d09fca41323765af0dc7926b150cf29ebff
tree4c781fcf29fc3af14ba0e76cd02c5d2737d106e8
parentd9dd73087a8b6d78d3bf8411620306f2313cdbae
block: cleanup the !zoned case in blk_revalidate_disk_zones

blk_revalidate_disk_zones is never called for non-zoned devices.  Just
return early and warn instead of trying to handle this case.

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