Re: [PATCH 4/6] block: set .bi_max_vecs as actual allocated vector number

From: Christoph Hellwig
Date: Mon Jan 04 2021 - 03:56:43 EST


On Wed, Dec 30, 2020 at 08:32:53AM +0800, Ming Lei wrote:
> bvec_alloc() may allocate more bio vectors than requested, so set .bi_max_vecs as
> actual allocated vector number, instead of the requested number. This way can help
> fs build bigger bio because new bio often won't be allocated until the current one
> becomes full.

Overly long lines above.

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>