Re: [PATCH 03/19] block: add a bio_add_max_vecs helper

Damien Le Moal
2025-05-01T18:50:12Z

On 5/1/25 06:21, Christoph Hellwig wrote:
> Add a helper to check how many bio_vecs are needed to add a kernel
> virtual address range to a bio, accounting for the always contiguous
> direct mapping and vmalloc mappings that usually need a bio_vec
> per page sized chunk.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Looks good to me.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

--
Damien Le Moal
Western Digital Research