[dm-devel] [PATCH 04/11] block: Introduce blkdev_nr_zones() helper
Christoph Hellwig
hch at lst.de
Wed Oct 10 13:26:39 UTC 2018
On Wed, Oct 10, 2018 at 10:52:32AM +0900, Damien Le Moal wrote:
> Introduce the blkdev_nr_zones() helper function to get the total
> number of zones of a zoned block device. This number is always 0 for a
> regular block device (q->limits.zoned == BLK_ZONED_NONE case).
>
> Replace hard-coded number of zones calculation in dmz_get_zoned_device()
> with a call to this helper.
Looks good,
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the dm-devel
mailing list