]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: Fix incorrect use of __le16/32/64
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 2 Sep 2019 19:24:13 +0000 (21:24 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 5 Sep 2019 08:50:04 +0000 (10:50 +0200)
Use ceph_le16/32/64 instead of __le16/32/64 (which are no-op outside
of kernel code).

Fixes (partially): https://tracker.ceph.com/issues/41605

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/mds/mdstypes.h

index 71b86097825388d0597a61e1cf214b85eb1055a6..2485b28a27b9c4926a222d05254e0ec6bf59097b 100644 (file)
@@ -1423,13 +1423,13 @@ WRITE_CLASS_ENCODER(snaprealm_reconnect_t)
 
 // compat for pre-FLOCK feature
 struct old_ceph_mds_cap_reconnect {
-       __le64 cap_id;
-       __le32 wanted;
-       __le32 issued;
-  __le64 old_size;
+       ceph_le64 cap_id;
+       ceph_le32 wanted;
+       ceph_le32 issued;
+  ceph_le64 old_size;
   struct ceph_timespec old_mtime, old_atime;
-       __le64 snaprealm;
-       __le64 pathbase;        /* base ino for our path to this ino */
+       ceph_le64 snaprealm;
+       ceph_le64 pathbase;        /* base ino for our path to this ino */
 } __attribute__ ((packed));
 WRITE_RAW_ENCODER(old_ceph_mds_cap_reconnect)