Re: [PATCH v12 09/13] dm-zone: use generic helpers to calculate offset from zone start

From: Mike Snitzer
Date: Thu Sep 01 2022 - 20:17:05 EST


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

> Use the bdev_offset_from_zone_start() helper function to calculate
> the offset from zone start instead of using power of 2 based
> calculation.
>
> Signed-off-by: Pankaj Raghav <p.raghav@xxxxxxxxxxx>
> Reviewed-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
> Reviewed-by: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx>

Reviewed-by: Mike Snitzer <snitzer@xxxxxxxxxx>