[PATCH 3/7] nvmet: introduce bdev_zone_no helper
Bart Van Assche
bvanassche at acm.org
Fri Jan 6 14:39:36 PST 2023
On 1/6/23 00: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.
Please use the imperative mood in patch descriptions (... is added ->
add ...).
let's -> lets
If these two issues are addressed, please add:
Reviewed-by: Bart Van Assche <bvanassche at acm.org>
More information about the Linux-nvme
mailing list