diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-06-17 13:35:35 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-08 22:37:20 -0400 |
commit | acbdeb8320b0a470bef1b6c0105d8c2bbc4c4ba0 (patch) | |
tree | 71d93eebaecb1fa4e5fb453b821dec3d1f83f90c /tools/perf/scripts/python/stackcollapse.py | |
parent | c81ce28df500b04444ef97dc82a7b0299ce717e8 (diff) |
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/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions