From ab0942491729edf950576d640fb6a6b099b556e6 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 2 Sep 2019 21:24:13 +0200 Subject: [PATCH] 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 --- src/mds/mdstypes.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) -- 2.39.5