]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: define struct ceph_sparse_extent and add some helpers
authorJeff Layton <jlayton@kernel.org>
Wed, 16 Mar 2022 19:23:00 +0000 (15:23 -0400)
committerJeff Layton <jlayton@kernel.org>
Tue, 26 Apr 2022 12:54:03 +0000 (08:54 -0400)
commit52bfa82f8eb8d2970d7ec6178e4a272890f2006f
treeafae0b0d68c1a14ecd1671584f1363df1a961c9e
parent266e1e50911fa8317a701e184f008d7bf6769ab9
libceph: define struct ceph_sparse_extent and add some helpers

When the OSD sends back a sparse read reply, it contains an array of
these structures. Define the structure and add a couple of helpers for
dealing with them.

Also add a place in struct ceph_osd_req_op to store the extent buffer,
and code to free it if it's populated when the req is torn down.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
include/linux/ceph/osd_client.h
net/ceph/osd_client.c