diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-06-17 20:45:41 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-09 04:37:22 +0200 |
commit | 3cf42da327f26eb4461864dd64812345b37f4fd9 (patch) | |
tree | 11087a554496e94eafb4c180c5dad398ca30ac79 /fs/ceph | |
parent | fold __pipe_get_pages() into pipe_get_pages() (diff) | |
download | linux-3cf42da327f26eb4461864dd64812345b37f4fd9.tar.xz linux-3cf42da327f26eb4461864dd64812345b37f4fd9.zip |
iov_iter: saner helper for page array allocation
All call sites of get_pages_array() are essenitally identical now.
Replace with common helper...
Returns number of slots available in resulting array or 0 on OOM;
it's up to the caller to make sure it doesn't ask to zero-entry
array (i.e. neither maxpages nor size are allowed to be zero).
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ceph')
0 files changed, 0 insertions, 0 deletions