Re: [PATCH v12 08/13] dm-zoned: ensure only power of 2 zone sizes are allowed

From: Mike Snitzer
Date: Thu Sep 01 2022 - 20:16:36 EST


On Tue, Aug 23 2022 at 8:18P -0400,
Pankaj Raghav <p.raghav@xxxxxxxxxxx> wrote:

> From: Luis Chamberlain <mcgrof@xxxxxxxxxx>
>
> dm-zoned relies on the assumption that the zone size is a
> power-of-2(po2) and the zone capacity is same as the zone size.
>
> Ensure only po2 devices can be used as dm-zoned target until a native
> support for zoned devices with non-po2 zone size is added.
>
> Reviewed-by: Hannes Reinecke <hare@xxxxxxx>
> Reviewed-by: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
> Signed-off-by: Pankaj Raghav <p.raghav@xxxxxxxxxxx>

Reviewed-by: Mike Snitzer <snitzer@xxxxxxxxxx>