Searched hist:acbdeb83 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/lib/ |
H A D | iov_iter.c | acbdeb83 Fri Jun 17 12:35:35 CDT 2022 Al Viro <viro@zeniv.linux.org.uk> unify pipe_get_pages() and pipe_get_pages_alloc()
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: Jeff Layton <jlayton@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|