ceph: add start/finish encoding helpers
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 30 Jun 2015 20:27:57 +0000 (13:27 -0700)
committerDavid Disseldorp <ddiss@suse.de>
Sat, 22 Aug 2015 13:33:27 +0000 (15:33 +0200)
commit6a8e24e4407f3c995d9927e3da07a23c88634551
tree603a3d8ad3557f79c2fff66dcddc1ea263c0b144
parentcc71332efb7d07dea26978f8b9c6af5e3f534f13
ceph: add start/finish encoding helpers

This patch adds helpers to encode/decode the starting blocks
locking code. They are the equivalent of ENCODE_START and
DECODE_START_LEGACY_COMPAT_LEN in the userspace ceph code.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
[djf: added fixup from mailing list]
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
include/linux/ceph/decode.h