From: Ilya Dryomov Date: Thu, 28 Apr 2016 14:07:22 +0000 (+0200) Subject: libceph: fix ceph_eversion encoding X-Git-Tag: v4.14-rc1~3130^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=985c1673885b77b2e0167c6478a833817d1e2fe5;p=platform%2Fkernel%2Flinux-rpi.git libceph: fix ceph_eversion encoding eversion_t is version+epoch in userspace and is encoded in that order. ceph_eversion is defined as epoch+version in rados.h, yet we memcpy it in __send_request(). Reoder ceph_eversion fields. Signed-off-by: Ilya Dryomov --- diff --git a/include/linux/ceph/rados.h b/include/linux/ceph/rados.h index 2f822dc..913c87c 100644 --- a/include/linux/ceph/rados.h +++ b/include/linux/ceph/rados.h @@ -114,8 +114,8 @@ struct ceph_object_layout { * compound epoch+version, used by storage layer to serialize mutations */ struct ceph_eversion { - __le32 epoch; __le64 version; + __le32 epoch; } __attribute__ ((packed)); /*