f2fs: fix endianness of on-disk summary_footer
PATCH 1/1 f2fs: fix endianness of on-disk summary_footer
--- include/linux/f2fs_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/f2fs_fs.h +1 -1
@@ -344,7 +344,7 @@ struct f2fs_summary {struct summary_footer {unsigned char entry_type;/* SUM_TYPE_XXX */ -__u32 check_sum;/* summary checksum */ +__le32 check_sum;/* summary checksum */ } __packed;#define SUM_JOURNAL_SIZE (F2FS_BLKSIZE - SUM_FOOTER_SIZE -\
Signature · 9 lines
1.9.1 ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Hi Sheng,
Quoted 8 lines
-----Original Message-----
From: Sheng Yong [mailto:[email protected]]
Sent: Thursday, January 28, 2016 7:40 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: [PATCH] f2fs: fix endianness of on-disksummary_footerSigned-off-by Sheng Yong <[email protected]>
Nice catch!
Thanks,
Quoted 18 lines
--- include/linux/f2fs_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/f2fs_fs.h +1
-2@@ -344,7 +344,7 @@ struct f2fs_summary {struct summary_footer {unsigned char entry_type;/* SUM_TYPE_XXX */ -__u32 check_sum;/* summary checksum */ +__le32 check_sum;/* summary checksum */ } __packed;#define SUM_JOURNAL_SIZE (F2FS_BLKSIZE - SUM_FOOTER_SIZE -\ --
Quoted 1 line
1.9.1
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140