From: Ulrich Weigand Date: Mon, 2 Sep 2019 19:24:13 +0000 (+0200) Subject: mds: Fix incorrect use of __le16/32/64 X-Git-Tag: v15.1.0~1637^2~10 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ab0942491729edf950576d640fb6a6b099b556e6;p=ceph-ci.git mds: Fix incorrect use of __le16/32/64 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 --- diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index 71b86097825..2485b28a27b 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -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)