[PATCH 2/7] block: add a new helper bdev_{is_zone_start, offset_from_zone_start}

Chaitanya Kulkarni chaitanyak at nvidia.com
Sun Jan 8 23:42:17 PST 2023


On 1/6/23 00:33, Pankaj Raghav wrote:
> Instead of open coding to check for zone start, add a helper to improve
> readability and store the logic in one place.
> 
> bdev_offset_from_zone_start() will be used later in the series.
> 
> Signed-off-by: Pankaj Raghav <p.raghav at samsung.com>


Looks good.

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

-ck




More information about the Linux-nvme mailing list