Skip to content
Commit 3d671ca6 authored by Al Viro's avatar Al Viro
Browse files

get rid of iterate_all_kinds() in iov_iter_get_pages()/iov_iter_get_pages_alloc()



Here iterate_all_kinds() is used just to find the first (non-empty, in
case of iovec) segment.  Which can be easily done explicitly.
Note that in bvec case we now can get more than PAGE_SIZE worth of them,
in case when we have a compound page in bvec and a range that crosses
a subpage boundary.  Older behaviour had been to stop on that boundary;
we used to get the right first page (for_each_bvec() took care of that),
but that was all we'd got.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 610c7a71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment