diff options
| author | 2022-06-17 13:35:35 -0400 | |
|---|---|---|
| committer | 2022-08-08 22:37:20 -0400 | |
| commit | acbdeb8320b0a470bef1b6c0105d8c2bbc4c4ba0 (patch) | |
| tree | 71d93eebaecb1fa4e5fb453b821dec3d1f83f90c /tools/scripts/ssh:/git@git.zx2c4.com | |
| parent | iov_iter_get_pages(): sanity-check arguments (diff) | |
| download | linux-dev-acbdeb8320b0a470bef1b6c0105d8c2bbc4c4ba0.tar.xz linux-dev-acbdeb8320b0a470bef1b6c0105d8c2bbc4c4ba0.zip | |
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>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
