[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2616b59b-8c6b-a482-a396-d9408fa461a3@acm.org>
Date: Wed, 3 Aug 2022 10:22:32 -0700
From: Bart Van Assche <bvanassche@....org>
To: Pankaj Raghav <p.raghav@...sung.com>, Johannes.Thumshirn@....com,
snitzer@...nel.org, axboe@...nel.dk,
damien.lemoal@...nsource.wdc.com, agk@...hat.com, hch@....de
Cc: pankydev8@...il.com, gost.dev@...sung.com,
linux-kernel@...r.kernel.org, linux-nvme@...ts.infradead.org,
linux-block@...r.kernel.org, dm-devel@...hat.com,
jaegeuk@...nel.org, matias.bjorling@....com,
Luis Chamberlain <mcgrof@...nel.org>
Subject: Re: [dm-devel] [PATCH v9 05/13] nvme: zns: Allow ZNS drives that have
non-power_of_2 zone size
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.
Powered by blists - more mailing lists