Searched hist:"610 c7a71" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/lib/ |
H A D | iov_iter.c | 610c7a71 Sun Apr 25 00:03:16 CDT 2021 Al Viro <viro@zeniv.linux.org.uk> 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>
|