Browse Source

f2fs: fix endianness of on-disk summary_footer

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Sheng Yong 9 years ago
parent
commit
479c8bc40c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/linux/f2fs_fs.h

+ 1 - 1
include/linux/f2fs_fs.h

@@ -345,7 +345,7 @@ struct f2fs_summary {
 
 
 struct summary_footer {
 struct summary_footer {
 	unsigned char entry_type;	/* SUM_TYPE_XXX */
 	unsigned char entry_type;	/* SUM_TYPE_XXX */
-	__u32 check_sum;		/* summary checksum */
+	__le32 check_sum;		/* summary checksum */
 } __packed;
 } __packed;
 
 
 #define SUM_JOURNAL_SIZE	(F2FS_BLKSIZE - SUM_FOOTER_SIZE -\
 #define SUM_JOURNAL_SIZE	(F2FS_BLKSIZE - SUM_FOOTER_SIZE -\