Thread (32 messages) 32 messages, 4 authors, 2022-09-16

Re: [PATCH v13 01/13] block: make bdev_nr_zones and disk_zone_no generic for npo2 zone size

From: Chaitanya Kulkarni <hidden>
Date: 2022-09-14 17:20:03
Also in: dm-devel, linux-nvme, lkml

On 9/12/2022 1:21 AM, Pankaj Raghav wrote:
Adapt bdev_nr_zones and disk_zone_no functions so that they can
also work for non-power-of-2 zone sizes.

As the existing deployments assume that a device zone size is a power of
2 number of sectors, power-of-2 optimized calculation is used for those
devices.

There are no direct hot paths modified and the changes just
introduce one new branch per call.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Adam Manzanares <redacted>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Pankaj Raghav <redacted>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
---

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help