]> git-server-git.apps.pok.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, 31 May 2022 14:45:05 +0000 (10:45 -0400)
commit0810ae7b95375c2076c09e59591a965c13b07bcf
tree68a4c793590095c187fd3935cac379a777d6f9d1
parentdd66179d90b46584114b151020f667372b254558
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