]> git.apps.os.sepia.ceph.com Git - ceph.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>
Wed, 2 Oct 2019 16:30:13 +0000 (18:30 +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>
(cherry picked from commit ab0942491729edf950576d640fb6a6b099b556e6)
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/mds/mdstypes.h

index 49f6944e4bf6b695cdb54a407b525695b7d3c974..dec19c1ec9fc15aab833801a710f220202b95536 100644 (file)
@@ -1414,13 +1414,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)