diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-25 08:03:16 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-06-10 18:45:11 +0300 |
commit | 610c7a71543df32fcecf64004f974905f5881fb3 (patch) | |
tree | 7811b3b50723fe322b5c60c79fb3d8d38e5edd0b /drivers | |
parent | 9221d2e37b729077797e6d02012289892dbdb859 (diff) | |
download | linux-610c7a71543df32fcecf64004f974905f5881fb3.tar.xz |
iov_iter_gap_alignment(): get rid of iterate_all_kinds()
For one thing, it's only used for iovec (and makes sense only for those).
For another, here we don't care about iov_offset, since the beginning of
the first segment and the end of the last one are ignored. So it makes
a lot more sense to just walk through the iovec array...
We need to deal with the case of truncated iov_iter, but unlike the
situation with iov_iter_alignment() we don't care where the last
segment ends - just which segment is the last one.
[fixed a braino spotted by Qian Cai <quic_qiancai@quicinc.com>]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions