* [PATCH] f2fs: fix memory alignment to support 32bit
@ 2020-10-08 22:11 Jaegeuk Kim
0 siblings, 0 replies; only message in thread
From: Jaegeuk Kim @ 2020-10-08 22:11 UTC (permalink / raw)
To: linux-kernel, linux-f2fs-devel, kernel-team
Cc: Jaegeuk Kim, Nicolas Chauvet, Chao Yu
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 713ab95223ef6..ce79b9b5b1eff 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -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 {
--
2.28.0.1011.ga647a8990f-goog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-08 22:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08 22:11 [PATCH] f2fs: fix memory alignment to support 32bit Jaegeuk Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).