Files
erofs-linux/lib
Ming Lei 341468e0ab lib/iov_iter: fix bvec iterator setup
.bi_size of bvec iterator should be initialized as real max size for
walking, and .bi_bvec_done just counts how many bytes need to be
skipped in the 1st bvec, so .bi_size isn't related with .bi_bvec_done.

This patch fixes bvec iterator initialization, and the inner `size`
check isn't needed any more, so revert Eric Dumazet's commit
7bc802acf193 ("iov-iter: do not return more bytes than requested in
iov_iter_extract_bvec_pages()").

Cc: Eric Dumazet <[email protected]>
Fixes: e4e535bff2 ("iov_iter: don't require contiguous pages in iov_iter_extract_bvec_pages")
Reported-by: [email protected]
Tested-by: [email protected]
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
2024-11-01 20:18:21 -06:00
..
…
…
…
…
2024-07-12 16:39:53 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-04-25 21:07:06 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-06-25 17:15:06 -07:00
2024-04-25 21:07:05 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-07-04 23:43:10 -07:00
…
2024-02-15 12:17:28 -05:00
…
…
2024-06-10 11:14:52 +01:00
2024-09-03 21:15:42 -07:00
…
…