From: Jens Axboe Date: Fri, 13 Jul 2007 12:11:43 +0000 (+0200) Subject: splice: fix offset mangling with direct splicing (sendfile) X-Git-Tag: v2.6.23-rc1~1078^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51a92c0f6ce8fa85fa0e18ecda1d847e606e8066;p=pandora-kernel.git splice: fix offset mangling with direct splicing (sendfile) If the output actor doesn't transfer the full amount of data, we will increment ppos too much. Two related bugs in there: - We need to break out and return actor() retval if it is shorted than what we spliced into the pipe. - Adjust ppos only according to actor() return. Also fix loop problem in generic_file_splice_read(), it should not keep going when data has already been transferred. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed