aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim2020-10-07 11:14:35 -0700
committerJaegeuk Kim2020-10-08 21:24:40 -0700
commit48046cb55d208eae67259887b29b3097bcf44caf (patch)
tree933618abb2ecdbeb82f1aadecd90fef978348891 /fs/f2fs
parentadfc694330d36974f2cba794d54109d42950da36 (diff)
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 <kwizart@gmail.com> Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
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 {