]> err.no Git - linux-2.6/commit
[PATCH] vmsplice: allow user to pass in gift pages
authorJens Axboe <axboe@suse.de>
Mon, 1 May 2006 18:02:33 +0000 (20:02 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 1 May 2006 18:02:33 +0000 (20:02 +0200)
commit7afa6fd037e51e95d322990cb127bb2b1217251a
treedbe4052947bff32a6ada378576b8d7669c581cf4
parentf6762b7ad8edd6abc802542ce845d3bc8adcb92f
[PATCH] vmsplice: allow user to pass in gift pages

If SPLICE_F_GIFT is set, the user is basically giving this pages away to
the kernel. That means we can steal them for eg page cache uses instead
of copying it.

The data must be properly page aligned and also a multiple of the page size
in length.

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