summaryrefslogtreecommitdiffstats
path: root/fs/adfs/dir_fplus.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-12-09 12:09:56 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2020-01-21 02:12:41 +0100
commitae5df41390eb1c40b9a5c220673d8c31a4cb57db (patch)
tree28bc9ed97e8bc725ecabadfdfa784f4ca6e4caf1 /fs/adfs/dir_fplus.h
parentfs/adfs: dir: update directory locking (diff)
downloadlinux-ae5df41390eb1c40b9a5c220673d8c31a4cb57db.tar.xz
linux-ae5df41390eb1c40b9a5c220673d8c31a4cb57db.zip
fs/adfs: dir: modernise on-disk directory structures
Use __u8 and pack the structures for on-disk directories. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/adfs/dir_fplus.h')
-rw-r--r--fs/adfs/dir_fplus.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/adfs/dir_fplus.h b/fs/adfs/dir_fplus.h
index 4ec0931e36ad..d729b1591e5e 100644
--- a/fs/adfs/dir_fplus.h
+++ b/fs/adfs/dir_fplus.h
@@ -22,7 +22,7 @@ struct adfs_bigdirheader {
__le32 bigdirnamesize;
__le32 bigdirparent;
char bigdirname[1];
-};
+} __attribute__((packed, aligned(4)));
struct adfs_bigdirentry {
__le32 bigdirload;
@@ -32,11 +32,11 @@ struct adfs_bigdirentry {
__le32 bigdirattr;
__le32 bigdirobnamelen;
__le32 bigdirobnameptr;
-};
+} __attribute__((packed, aligned(4)));
struct adfs_bigdirtail {
__le32 bigdirendname;
__u8 bigdirendmasseq;
__u8 reserved[2];
__u8 bigdircheckbyte;
-};
+} __attribute__((packed, aligned(4)));