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

- From: Christoph Hellwig \<hch@infradead.org\>
- Date: 2021-01-04 16:20:23 
- List: linux-xfs
- Page: https://ratatoskr.run/linux-xfs/2021/01/196590
- Thread: https://ratatoskr.run/linux-block/2021/01/196540/t.md

```text
On Sat, Jan 02, 2021 at 03:17:34PM +0000, 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 places that were generating them are patched, declare them
> not allowed.

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
```
