[PATCH 3/7] nvmet: introduce bdev_zone_no helper
Damien Le Moal
damien.lemoal at opensource.wdc.com
Fri Jan 6 03:02:03 PST 2023
On 1/6/23 17:33, Pankaj Raghav wrote:
> A generic bdev_zone_no() helper is added 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 let's us
> make modifications to the math if needed in one place.
>
> Signed-off-by: Pankaj Raghav <p.raghav at samsung.com>
Reviewed-by: Damien Le Moal <damien.lemoal at opensource.wdc.com>
--
Damien Le Moal
Western Digital Research
More information about the Linux-nvme
mailing list