diff options
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
-rw-r--r-- | fs/xfs/xfs_log_priv.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h index eb7fdc6ebc32..a884cea82fca 100644 --- a/fs/xfs/xfs_log_priv.h +++ b/fs/xfs/xfs_log_priv.h | |||
@@ -112,7 +112,7 @@ struct xfs_mount; | |||
112 | * this has endian issues, of course. | 112 | * this has endian issues, of course. |
113 | */ | 113 | */ |
114 | 114 | ||
115 | #if __BYTE_ORDER == __LITTLE_ENDIAN | 115 | #ifndef XFS_NATIVE_HOST |
116 | #define GET_CLIENT_ID(i,arch) \ | 116 | #define GET_CLIENT_ID(i,arch) \ |
117 | ((i) & 0xff) | 117 | ((i) & 0xff) |
118 | #else | 118 | #else |
@@ -414,14 +414,10 @@ typedef struct xlog_op_header { | |||
414 | #define XLOG_FMT_IRIX_BE 3 | 414 | #define XLOG_FMT_IRIX_BE 3 |
415 | 415 | ||
416 | /* our fmt */ | 416 | /* our fmt */ |
417 | #if __BYTE_ORDER == __LITTLE_ENDIAN | 417 | #ifdef XFS_NATIVE_HOST |
418 | #define XLOG_FMT XLOG_FMT_LINUX_LE | ||
419 | #else | ||
420 | #if __BYTE_ORDER == __BIG_ENDIAN | ||
421 | #define XLOG_FMT XLOG_FMT_LINUX_BE | 418 | #define XLOG_FMT XLOG_FMT_LINUX_BE |
422 | #else | 419 | #else |
423 | #error unknown byte order | 420 | #define XLOG_FMT XLOG_FMT_LINUX_LE |
424 | #endif | ||
425 | #endif | 421 | #endif |
426 | 422 | ||
427 | typedef struct xlog_rec_header { | 423 | typedef struct xlog_rec_header { |