Skip to content
Commit 7a1bcb5d authored by Al Viro's avatar Al Viro
Browse files

iov_iter: massage iterate_iovec and iterate_kvec to logics similar to iterate_bvec



Premature optimization is the root of all evil...  Trying
to unroll the first pass through the loop makes it harder
to follow and not just for readers - compiler ends up
generating worse code than it would on a "non-optimized"
loop.

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