Whamcloud - gitweb
Use ext2fs_cpu_to_be32() instead of cpu_to_be32() in kernel-jbd.h
authorTheodore Ts'o <tytso@mit.edu>
Sun, 16 Jun 2013 22:58:40 +0000 (18:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 Jun 2013 22:58:40 +0000 (18:58 -0400)
Avoid compatibility problems by using the byte swapping functions
defined by e2fsprogs, instead of the ones defined in the system header
files.  We use them everywhere else, so we should use them in
kernel-jbd.h too.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/kernel-jbd.h

index 066c031..059bf8f 100644 (file)
@@ -214,13 +214,13 @@ typedef struct journal_superblock_s
 
 #define JFS_HAS_COMPAT_FEATURE(j,mask)                                 \
        ((j)->j_format_version >= 2 &&                                  \
-        ((j)->j_superblock->s_feature_compat & cpu_to_be32((mask))))
+        ((j)->j_superblock->s_feature_compat & ext2fs_cpu_to_be32((mask))))
 #define JFS_HAS_RO_COMPAT_FEATURE(j,mask)                              \
        ((j)->j_format_version >= 2 &&                                  \
-        ((j)->j_superblock->s_feature_ro_compat & cpu_to_be32((mask))))
+        ((j)->j_superblock->s_feature_ro_compat & ext2fs_cpu_to_be32((mask))))
 #define JFS_HAS_INCOMPAT_FEATURE(j,mask)                               \
        ((j)->j_format_version >= 2 &&                                  \
-        ((j)->j_superblock->s_feature_incompat & cpu_to_be32((mask))))
+        ((j)->j_superblock->s_feature_incompat & ext2fs_cpu_to_be32((mask))))
 
 #define JFS_FEATURE_COMPAT_CHECKSUM    0x00000001