Message ID | 110100.1681301937@warthog.procyon.org.uk |
---|---|
State | New |
Headers | show |
Series | netfs: Fix netfs_extract_iter_to_sg() for ITER_UBUF/IOVEC | expand |
On Wed, Apr 12, 2023 at 5:19 AM David Howells <dhowells@redhat.com> wrote: > > Could you apply this, please? It doesn't affect anything yet, but I have > patches in the works that will use it. Applied, Linus
diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c index e9a45dea748a..8a4c86687429 100644 --- a/fs/netfs/iterator.c +++ b/fs/netfs/iterator.c @@ -139,7 +139,7 @@ static ssize_t netfs_extract_user_to_sg(struct iov_iter *iter, size_t seg = min_t(size_t, PAGE_SIZE - off, len); *pages++ = NULL; - sg_set_page(sg, page, len, off); + sg_set_page(sg, page, seg, off); sgtable->nents++; sg++; len -= seg;