Re: [PATCH v2 04/28] block: Introduce bio_straddle_zones() and bio_offset_from_zone_start()

Christoph Hellwig
2024-03-26T06:39:18Z

On Mon, Mar 25, 2024 at 01:44:28PM +0900, Damien Le Moal wrote:
> Implement the inline helper functions bio_straddle_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.

Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>

(the grammar fix from Bart looks good as well)