ceph: use osd_req_op_extent_osd_iter for netfs reads
authorJeff Layton <jlayton@kernel.org>
Mon, 2 Jan 2023 11:36:14 +0000 (12:36 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 22 Aug 2023 07:01:48 +0000 (09:01 +0200)
commit4de77f25fd857a9dd0614416025af51b45c1cb2a
treecb485522419921a53d7963b11aa417a0d633a4a6
parentdee0c5f834605ce9b384ee8b9c7032ffd8db4eca
ceph: use osd_req_op_extent_osd_iter for netfs reads

The netfs layer has already pinned the pages involved before calling
issue_op, so we can just pass down the iter directly instead of calling
iov_iter_get_pages_alloc.

Instead of having to allocate a page array, use CEPH_MSG_DATA_ITER and
pass it the iov_iter directly to clone.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c