commit | 7a1bcb5d255d4fd8b9725c3cf7ee0880a6369d2f | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Apr 25 23:46:09 2021 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu Jun 10 11:45:16 2021 -0400 |
tree | 61043b81e93a2e718ee69302688d2e122133dff5 | |
parent | f5da83545f4ed2c1a1648b7d760a6fc358798e52 [diff] |
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>