Searched hist:"51 a92c0f" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ |
H A D | splice.c | 51a92c0f Fri Jul 13 07:11:43 CDT 2007 Jens Axboe <jens.axboe@oracle.com> 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 <jens.axboe@oracle.com> 51a92c0f Fri Jul 13 07:11:43 CDT 2007 Jens Axboe <jens.axboe@oracle.com> 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 <jens.axboe@oracle.com>
|