On 8/3/22 02:47, Pankaj Raghav wrote:
- sector &= ~(ns->zsze - 1); + /* + * Round down the sector value to the nearest zone start + */ + div64_u64_rem(sector, ns->zsze, &remainder); + sector -= remainder;
Could bdev_offset_from_zone_start() be used here? Thanks, Bart.