Re: [PATCH v3 2/7] bvec/iter: disallow zero-length segment bvecs

2021-01-10 Thread Ming Lei
On Sat, Jan 09, 2021 at 04:02:58PM +, Pavel Begunkov wrote: > zero-length bvec segments are allowed in general, but not handled by bio > and down the block layer so filtered out. This inconsistency may be > confusing and prevent from optimisations. As zero-length segments are > useless and plac

[PATCH v3 2/7] bvec/iter: disallow zero-length segment bvecs

2021-01-09 Thread Pavel Begunkov
zero-length bvec segments are allowed in general, but not handled by bio and down the block layer so filtered out. This inconsistency may be confusing and prevent from optimisations. As zero-length segments are useless and places that were generating them are patched, declare them not allowed. Rev