Skip to content

Commit 48046cb

Browse files
author
Jaegeuk Kim
committed
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>
1 parent adfc694 commit 48046cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/f2fs/f2fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ struct rb_entry {
619619
unsigned int len; /* length of the entry */
620620
};
621621
unsigned long long key; /* 64-bits key */
622-
};
622+
} __packed;
623623
};
624624

625625
struct extent_info {

0 commit comments

Comments
 (0)