Skip to contentSkip to conversation

f2fs: fix endianness of on-disk summary_footer

PATCH In review Sheng Yong 2 participants 2 messages Jan 28, 2016 F2FS file system

lore
Share & tools
lore

Sheng Yong

author
#0 lore raw

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
index 25c6324..2863274 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

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-disk summary_footer

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
index 25c6324..2863274 100644
@@ -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