Re: [PATCH 04/11] block: Introduce blkdev_nr_zones() helper

2018-10-10 Thread Christoph Hellwig
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

[PATCH 04/11] block: Introduce blkdev_nr_zones() helper

2018-10-09 Thread Damien Le Moal
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