Files
linux/include
Pankaj Raghav 39ae1728d8 BACKPORT: FROMLIST: block: make bdev_nr_zones and disk_zone_no generic for npo2 zone size
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 <a.manzanares@samsung.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Bug: 197782466
Bug: 269471019
Link: https://lore.kernel.org/linux-block/20220923173618.6899-2-p.raghav@samsung.com/
Change-Id: I1695f25f55579a342c44c6994fd43055d7356c81
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-02-15 18:44:00 +00:00
..
2022-09-21 17:30:12 +02:00
2022-09-24 10:02:50 +02:00
2023-02-01 09:38:19 +00:00
2023-02-09 13:35:59 +00:00
2023-01-18 13:13:15 +00:00
2023-02-15 15:06:07 +00:00