iov_iter_alignment(): don't bother with iterate_all_kinds()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 25 Apr 2021 04:44:35 +0000 (00:44 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 10 Jun 2021 15:45:10 +0000 (11:45 -0400)
commit9221d2e37b729077797e6d02012289892dbdb859
tree9c8619d3cc168554eba89d1e31da8934b41d5ab3
parent8409a0d261e20180361e7afe6d89847d1bad4ce8
iov_iter_alignment(): don't bother with iterate_all_kinds()

It's easier to go over the array manually.  We need to watch out
for truncated iov_iter, though - iovec array might cover more
than i->count.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c