From: Jaegeuk Kim Date: Wed, 7 Oct 2020 18:14:35 +0000 (-0700) Subject: f2fs: fix memory alignment to support 32bit X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~977^2~8 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=48046cb55d208eae67259887b29b3097bcf44caf;p=linux.git 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". Reported-by: Nicolas Chauvet Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 61fd78b1b1bd..ae46d44bd521 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -619,7 +619,7 @@ struct rb_entry { unsigned int len; /* length of the entry */ }; unsigned long long key; /* 64-bits key */ - }; + } __packed; }; struct extent_info {