[PATCH v3 05/30] block: Introduce bio_straddles_zones() and bio_offset_from_zone_start()

Bart Van Assche bvanassche at acm.org
Thu Mar 28 14:32:29 PDT 2024


On 3/27/24 5:43 PM, Damien Le Moal wrote:
> Implement the inline helper functions bio_straddles_zones() and
> bio_offset_from_zone_start() to respectively test if a BIO crosses a
> zone boundary (the start sector and last sector belong to different
> zones) and to obtain the offset of a BIO from the start sector of its
> target zone.

Reviewed-by: Bart Van Assche <bvanassche at acm.org>




More information about the Linux-nvme mailing list