[PATCH] splice: add direct fd <-> fd splicing support
authorJens Axboe <axboe@suse.de>
Tue, 11 Apr 2006 11:52:07 +0000 (13:52 +0200)
committerJens Axboe <axboe@suse.de>
Tue, 11 Apr 2006 11:52:07 +0000 (13:52 +0200)
commitb92ce55893745e011edae70830b8bc863be881f9
treee2afd62d2e63d74157905140f5907d07bdfe31b9
parent529565dcb1581c9a1e3f6df1c1763ca3e0f0d512
[PATCH] splice: add direct fd <-> fd splicing support

It's more efficient for sendfile() emulation. Basically we cache an
internal private pipe and just use that as the intermediate area for
pages. Direct splicing is not available from sys_splice(), it is only
meant to be used for sendfile() emulation.

Additional patch from Ingo Molnar to avoid the PIPE_BUFFERS loop at
exit for the normal fast path.

Signed-off-by: Jens Axboe <axboe@suse.de>
fs/pipe.c
fs/splice.c
include/linux/fs.h
include/linux/pipe_fs_i.h
include/linux/sched.h
kernel/exit.c