]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: set the data pointers when encoding ops
authorAlex Elder <elder@inktank.com>
Fri, 5 Apr 2013 06:27:12 +0000 (01:27 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 8 Apr 2013 21:26:10 +0000 (16:26 -0500)
commit3798d49d4dadb39f2fc7ca746dd1e37ab612493c
treebdaf06038042a25f6eb8eb2e5855386609de9761
parenta40f1b57ad9a6612e042cc5ceba453a0a1acfb62
libceph: set the data pointers when encoding ops

Still using the osd request r_data_in and r_data_out pointer, but
we're basically only referring to it via the data pointers in the
osd ops.  And we're transferring that information to the request
or reply message only when the op indicates it's needed, in
osd_req_encode_op().

To avoid a forward reference, ceph_osdc_msg_data_set() was moved up
in the file.

Don't bother calling ceph_osd_data_init(), in ceph_osd_alloc(),
because the ops array will already be zeroed anyway.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
include/linux/ceph/osd_client.h
net/ceph/osd_client.c