]> git.baikalelectronics.ru Git - kernel.git/commit
splice: don't generate zero-len segement bvecs
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 9 Jan 2021 16:02:57 +0000 (16:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 15:58:24 +0000 (08:58 -0700)
commitfdbfb19dd6f970f36997232f5bba8ba62593762a
tree762d8e337b77776ae4f473d788de25f2709594a9
parent23a0599cbecba176579ee2402c0adc2528ea0d9f
splice: don't generate zero-len segement bvecs

iter_file_splice_write() may spawn bvec segments with zero-length. In
preparation for prohibiting them, filter out by hand at splice level.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/splice.c