On 10/19/22 15:23, Bart Van Assche wrote:
Since multi-page bvecs are supported there can be multiple segments per bvec (see also bvec_split_segs()). Hence this patch that calculates the number of segments per bvec instead of assuming that there is only one segment per bvec.
(replying to my own email) Hi Ming,Do you agree that this patch fixes a bug introduced by the multi-page bvec code and also that it is required even if the segment size is larger than the page size?
Thanks, Bart.