Re: [PATCH v2 1/7] splice: don't generate zero-len segement bvecs

2021-01-04 Thread Pavel Begunkov
On 04/01/2021 16:17, Christoph Hellwig wrote: > On Sat, Jan 02, 2021 at 03:17:33PM +, Pavel Begunkov wrote: >> iter_file_splice_write() may spawn bvec segments with zero-length. In >> preparation for prohibiting them, filter out by hand at splice level. >> >> Signed-off-by: Pavel Begunkov >> -

Re: [PATCH v2 1/7] splice: don't generate zero-len segement bvecs

2021-01-04 Thread Christoph Hellwig
On Sat, Jan 02, 2021 at 03:17:33PM +, Pavel Begunkov wrote: > iter_file_splice_write() may spawn bvec segments with zero-length. In > preparation for prohibiting them, filter out by hand at splice level. > > Signed-off-by: Pavel Begunkov > --- > fs/splice.c | 9 + > 1 file changed, 5

[PATCH v2 1/7] splice: don't generate zero-len segement bvecs

2021-01-02 Thread Pavel Begunkov
iter_file_splice_write() may spawn bvec segments with zero-length. In preparation for prohibiting them, filter out by hand at splice level. Signed-off-by: Pavel Begunkov --- fs/splice.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/splice.c b/fs/splice.c index 8