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@xxxxxx> -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel