• Al Viro's avatar
    unify pipe_get_pages() and pipe_get_pages_alloc() · acbdeb83
    Al Viro authored
    	The differences between those two are
    * pipe_get_pages() gets a non-NULL struct page ** value pointing to
    preallocated array + array size.
    * pipe_get_pages_alloc() gets an address of struct page ** variable that
    contains NULL, allocates the array and (on success) stores its address in
    that variable.
    
    	Not hard to combine - always pass struct page ***, have
    the previous pipe_get_pages_alloc() caller pass ~0U as cap for
    array size.
    Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    acbdeb83
iov_iter.c 47.7 KB