f2fs: fix memory alignment to support 32bit
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 7 Oct 2020 18:14:35 +0000 (11:14 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 9 Oct 2020 04:24:40 +0000 (21:24 -0700)
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 <kwizart@gmail.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h

index 61fd78b..ae46d44 100644 (file)
@@ -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 {