Skip to contentSkip to conversation

f2fs: fix memory alignment to support 32bit

PATCH New Jaegeuk Kim 1 participant 1 message Oct 8, 2020 F2FS file system

lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: fix memory alignment to support 32bit

In 32bit system, 64-bits key breaks memory alignment.
This fixes the commit "f2fs: support 64-bits key in f2fs rb-tree node entry".

---
 fs/f2fs/f2fs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/f2fs.h +1 -1
index 713ab95223ef6..ce79b9b5b1eff 100644
@@ -617,7 +617,7 @@ struct rb_entry {
 			unsigned int len;	/* length of the entry */
 		};
 		unsigned long long key;		/* 64-bits key */
-	};
+	} __packed;
 };
 
 struct extent_info {
Signature · 1 line
2.28.0.1011.ga647a8990f-goog