Thread (62 messages) 62 messages, 9 authors, 2022-05-05

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

From: Bart Van Assche <bvanassche@acm.org>
Date: 2022-05-03 16:50:53
Also in: dm-devel, linux-btrfs, linux-f2fs-devel, linux-fsdevel, linux-nvme, lkml

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help