lkml.org 
[lkml]   [2022]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 05/16] nvme: zns: Allow ZNS drives that have non-power_of_2 zone size
From
On 4/27/22 09:02, Pankaj Raghav wrote:
> - sector &= ~(ns->zsze - 1);
> + sector = rounddown(sector, ns->zsze);

The above change breaks 32-bit builds since ns->zsze is 64 bits wide and
since rounddown() uses the C division operator instead of div64_u64().

Thanks,

Bart.

\
 
 \ /
  Last update: 2022-05-03 18:51    [W:2.277 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site