vmsplice: relax alignement requirements for SPLICE_F_GIFT
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 4 Apr 2012 09:08:51 +0000 (11:08 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Apr 2012 08:20:05 +0000 (10:20 +0200)
commitbd1a68b59c8e3bce45fb76632c64e1e063c3962d
tree20ee27961256383e8eccb8236f901315623383f9
parenta637120e49021d197e9578cba545bbaa459cbb51
vmsplice: relax alignement requirements for SPLICE_F_GIFT

It seems there is no fundamental reason to limit vmsplice()
SPLICE_F_GIFT to page aligned chunks.

All helpers are prepared to cope with offsets in page.

This limitation makes vmsplice() API very impractical in the zero-copy
land.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Tom Herbert <therbert@google.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David Miller <davem@davemloft.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Hugh Dickins <hughd@google.com>
Cc: Changli Gao <xiaosuo@gmail.com>
Cc: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/splice.c