]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/splice.c
[PATCH] splice: fix offset problems
authorJens Axboe <axboe@suse.de>
Tue, 25 Apr 2006 13:42:00 +0000 (15:42 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Wed, 26 Apr 2006 08:33:34 +0000 (10:33 +0200)
commit016b661e2f717168e600f3c85f29e1a49f88e004
tree3ddf0f8a49c752cdd1187b5633c04400fcf42619
parentba5f5d90c45a30e4e9a1bd136acf1b3973c905c8
[PATCH] splice: fix offset problems

Make the move_from_pipe() actors return number of bytes processed, then
move_from_pipe() can decide more cleverly when to move on to the next
buffer.

This fixes problems with pipe offset and differing file offset.

Signed-off-by: Jens Axboe <axboe@suse.de>
fs/splice.c