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: v14.2.5~173^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8b16d62bdc8b3d20101732b6fde6a83a8029dd5b;p=ceph.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 (cherry picked from commit ab0942491729edf950576d640fb6a6b099b556e6) Signed-off-by: Ulrich Weigand --- diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index 49f6944e4bf6..dec19c1ec9fc 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -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)