• Al Viro's avatar
    get rid of iterate_all_kinds() in iov_iter_get_pages()/iov_iter_get_pages_alloc() · 3d671ca6
    Al Viro authored
    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>
    3d671ca6
iov_iter.c 50.8 KB