splice: fix problem with current mainline kernels
authorJens Axboe <jens.axboe@oracle.com>
Tue, 16 Oct 2007 07:42:40 +0000 (09:42 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 16 Oct 2007 07:42:40 +0000 (09:42 +0200)
commit8b850243258107412710cd38252f0cfb8802593d
tree860a56048373fd8fe4cdc410e288a6cdc930ee67
parentad92396cc21055cee93470dcf65e82ccde03aac5
splice: fix problem with current mainline kernels

splice was updated to work well with the newer vmsplice patches,
where we don't have to copy data at all. But that broke the
regular vmsplice that copies data, which is all the mainline kernel
still support.

Fix that up, so we do appropriate fallbacks. Fixes the problem
reported by gurudas pai <gurudas.pai@oracle.com>

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/splice.c