iov_iter: massage iterate_iovec and iterate_kvec to logics similar to iterate_bvec
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Apr 2021 03:46:09 +0000 (23:46 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Jun 2021 15:45:16 +0000 (11:45 -0400)
commit7a1bcb5d255d4fd8b9725c3cf7ee0880a6369d2f
tree61043b81e93a2e718ee69302688d2e122133dff5
parentf5da83545f4ed2c1a1648b7d760a6fc358798e52
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: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c