[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ee3be9d8-b473-8e59-4d3c-84e0ef9dd6f8@acm.org>
Date: Thu, 25 Aug 2022 14:46:03 -0700
From: Bart Van Assche <bvanassche@....org>
To: Pankaj Raghav <p.raghav@...sung.com>, agk@...hat.com,
snitzer@...nel.org, axboe@...nel.dk,
damien.lemoal@...nsource.wdc.com, hch@....de
Cc: pankydev8@...il.com, Johannes.Thumshirn@....com,
linux-block@...r.kernel.org, dm-devel@...hat.com, hare@...e.de,
jaegeuk@...nel.org, linux-kernel@...r.kernel.org,
matias.bjorling@....com, gost.dev@...sung.com,
linux-nvme@...ts.infradead.org,
Luis Chamberlain <mcgrof@...nel.org>
Subject: Re: [PATCH v12 05/13] nvme: zns: Allow ZNS drives that have
non-power_of_2 zone size
On 8/23/22 05:18, Pankaj Raghav wrote:
> Remove the condition which disallows non-power_of_2 zone size ZNS drive
> to be updated and use generic method to calculate number of zones
> instead of relying on log and shift based calculation on zone size.
>
> The power_of_2 calculation has been replaced directly with generic
> calculation without special handling. Both modified functions are not
> used in hot paths, they are only used during initialization &
> revalidation of the ZNS device.
>
> As rounddown macro from math.h does not work for 32 bit architectures,
> round down operation is open coded.
Reviewed-by: Bart Van Assche <bvanassche@....org>
Powered by blists - more mailing lists