]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ceph: switch the last caller of iov_iter_get_pages_alloc()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 10 Jun 2022 15:43:27 +0000 (11:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Aug 2022 02:37:24 +0000 (22:37 -0400)
here nothing even looks at the iov_iter after the call, so we couldn't
care less whether it advances or not.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ceph/addr.c

index d6e5916138e4f3c3f89fe529933537a924fb6091..2c3a9b5b4b745f0a0adfad3e319d839bd6f6a2b2 100644 (file)
@@ -329,7 +329,7 @@ static void ceph_netfs_issue_read(struct netfs_io_subrequest *subreq)
 
        dout("%s: pos=%llu orig_len=%zu len=%llu\n", __func__, subreq->start, subreq->len, len);
        iov_iter_xarray(&iter, READ, &rreq->mapping->i_pages, subreq->start, len);
-       err = iov_iter_get_pages_alloc(&iter, &pages, len, &page_off);
+       err = iov_iter_get_pages_alloc2(&iter, &pages, len, &page_off);
        if (err < 0) {
                dout("%s: iov_ter_get_pages_alloc returned %d\n", __func__, err);
                goto out;