Re: [PATCH 1/6] nvme: zns: Allow ZNS drives that have non-power_of_2 zone size

Pankaj Raghav
2022-03-09T13:19:45Z

On 2022-03-09 04:40, Damien Le Moal wrote:
> On 3/9/22 01:53, Pankaj Raghav wrote:
>> nr_zones = min_t(unsigned int, nr_zones,
>> - get_capacity(ns->disk) >> ilog2(ns->zsze));
>> + get_capacity(ns->disk) / ns->zsze);
>
> This will not compile on 32-bits arch. This needs to use div64_u64().
>
Oops. I will fix that up in the next revision and also in other places
that does not use a div64_u64. Thanks.
>
>

--
Regards,
Pankaj