]> git.baikalelectronics.ru Git - kernel.git/commit
do_splice_to(): move the logics for limiting the read length in
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 25 Jan 2021 04:49:04 +0000 (23:49 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jan 2021 04:28:41 +0000 (23:28 -0500)
commit313d64a35d36b4bb00edde418179ff1a5f342070
treea27e35c198f24376041d758ad8730b04f33968f6
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
do_splice_to(): move the logics for limiting the read length in

Both callers have the identical logics limiting the amount of
data we try to read into pipe - no more than would fit into
that pipe.  Move that into do_splice_to() itself.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/splice.c