Files
linux/drivers
Pankaj Raghav c5c1ebb7cf BACKPORT: FROMLIST: block: introduce bdev_zone_no helper
Add a generic bdev_zone_no() helper to calculate zone number for a
given sector in a block device. This helper internally uses disk_zone_no()
to find the zone number.

Use the helper bdev_zone_no() to calculate nr of zones. This lets us
make modifications to the math if needed in one place.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Bug: 197782466
Bug: 269471019
Link: https://lore.kernel.org/linux-block/20230110143635.77300-4-p.raghav@samsung.com/
Change-Id: I86d97c0a64db5ebe1be725710accdaf6e8346d9e
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-02-15 18:44:00 +00:00
..
2023-01-18 13:45:44 +00:00
2023-01-18 13:13:15 +00:00
2023-02-15 15:06:07 +00:00
2023-02-01 09:38:19 +00:00
2023-02-06 10:45:01 +00:00
2023-02-15 15:06:07 +00:00
2023-02-06 10:45:01 +00:00
2023-02-09 13:35:59 +00:00
2023-01-18 12:52:16 +00:00
2023-01-18 13:13:15 +00:00
2023-01-25 16:13:42 +00:00
2023-01-25 16:13:42 +00:00
2023-01-18 13:13:15 +00:00
2023-02-15 15:06:07 +00:00
2023-02-15 15:06:07 +00:00
2023-01-18 13:13:15 +00:00
2023-01-18 12:52:16 +00:00
2023-01-18 12:52:16 +00:00
2022-04-13 20:59:01 +02:00
2022-12-31 13:14:48 +01:00
2023-01-18 13:45:44 +00:00
2023-02-09 13:35:59 +00:00
2023-02-01 09:38:19 +00:00
2023-01-25 16:13:42 +00:00
2023-02-09 13:35:59 +00:00
2023-02-01 09:38:19 +00:00
2023-02-09 13:35:59 +00:00
2023-02-15 15:06:07 +00:00
2023-02-09 13:35:59 +00:00
2023-02-09 13:35:59 +00:00
2022-08-25 11:40:33 +02:00
2023-01-25 16:13:42 +00:00