From: Ilya Dryomov Date: Thu, 28 Apr 2016 14:07:22 +0000 (+0200) Subject: libceph: fix ceph_eversion encoding X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=985c1673885b77b2e0167c6478a833817d1e2fe5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 2f822dca1046..913c87c26d33 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)); /*