]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: clean up osd data field access functions
authorAlex Elder <elder@inktank.com>
Mon, 15 Apr 2013 19:50:36 +0000 (14:50 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:18:59 +0000 (21:18 -0700)
commitbdc9de4c678026fd9839ff79c77dde042f19e571
tree23049e44f416e0937615cf39c3f9d737e9ce4fd9
parent7f4aeecced188567bdb33b4878e273b4b0bf4bc4
libceph: clean up osd data field access functions

There are a bunch of functions defined to encapsulate getting the
address of a data field for a particular op in an osd request.
They're all defined the same way, so create a macro to take the
place of all of them.

Two of these are used outside the osd client code, so preserve them
(but convert them to use the new macro internally).  Stop exporting
the ones that aren't used elsewhere.

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