aboutsummaryrefslogtreecommitdiff
path: root/fs/hfs/hfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hfs/hfs.h')
-rw-r--r--fs/hfs/hfs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/hfs/hfs.h b/fs/hfs/hfs.h
index 88099ab1a18..6f194d0768b 100644
--- a/fs/hfs/hfs.h
+++ b/fs/hfs/hfs.h
@@ -83,8 +83,6 @@
/*======== HFS structures as they appear on the disk ========*/
-#define __packed __attribute__ ((packed))
-
/* Pascal-style string of up to 31 characters */
struct hfs_name {
u8 len;
@@ -169,6 +167,9 @@ typedef union hfs_btree_key {
struct hfs_ext_key ext;
} hfs_btree_key;
+#define HFS_MAX_CAT_KEYLEN (sizeof(struct hfs_cat_key) - sizeof(u8))
+#define HFS_MAX_EXT_KEYLEN (sizeof(struct hfs_ext_key) - sizeof(u8))
+
typedef union hfs_btree_key btree_key;
struct hfs_extent {