Re: [PATCH v3 6/7] bio: add a helper calculating nr segments to alloc

2021-01-10 Thread Ming Lei
On Sat, Jan 09, 2021 at 04:03:02PM +, Pavel Begunkov wrote: > Add a helper function calculating the number of bvec segments we need to > allocate to construct a bio. It doesn't change anything functionally, > but will be used to not duplicate special cases in the future. > > Reviewed-by:

[PATCH v3 6/7] bio: add a helper calculating nr segments to alloc

2021-01-09 Thread Pavel Begunkov
Add a helper function calculating the number of bvec segments we need to allocate to construct a bio. It doesn't change anything functionally, but will be used to not duplicate special cases in the future. Reviewed-by: Christoph Hellwig Signed-off-by: Pavel Begunkov --- fs/block_dev.c |