• E
    vmsplice: relax alignement requirements for SPLICE_F_GIFT · bd1a68b5
    Eric Dumazet 提交于
    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: NEric 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: NJens Axboe <axboe@kernel.dk>
    bd1a68b5
splice.c 46.2 KB