diff options
Diffstat (limited to 'fs/xfs/xfs_alloc_btree.h')
-rw-r--r-- | fs/xfs/xfs_alloc_btree.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/xfs/xfs_alloc_btree.h b/fs/xfs/xfs_alloc_btree.h index 7e89a2b429dd..e3a3f7424192 100644 --- a/fs/xfs/xfs_alloc_btree.h +++ b/fs/xfs/xfs_alloc_btree.h | |||
@@ -31,8 +31,10 @@ struct xfs_mount; | |||
31 | * by blockcount and blockno. All blocks look the same to make the code | 31 | * by blockcount and blockno. All blocks look the same to make the code |
32 | * simpler; if we have time later, we'll make the optimizations. | 32 | * simpler; if we have time later, we'll make the optimizations. |
33 | */ | 33 | */ |
34 | #define XFS_ABTB_MAGIC 0x41425442 /* 'ABTB' for bno tree */ | 34 | #define XFS_ABTB_MAGIC 0x41425442 /* 'ABTB' for bno tree */ |
35 | #define XFS_ABTC_MAGIC 0x41425443 /* 'ABTC' for cnt tree */ | 35 | #define XFS_ABTB_CRC_MAGIC 0x41423342 /* 'AB3B' */ |
36 | #define XFS_ABTC_MAGIC 0x41425443 /* 'ABTC' for cnt tree */ | ||
37 | #define XFS_ABTC_CRC_MAGIC 0x41423343 /* 'AB3C' */ | ||
36 | 38 | ||
37 | /* | 39 | /* |
38 | * Data record/key structure | 40 | * Data record/key structure |
@@ -59,10 +61,10 @@ typedef __be32 xfs_alloc_ptr_t; | |||
59 | 61 | ||
60 | /* | 62 | /* |
61 | * Btree block header size depends on a superblock flag. | 63 | * Btree block header size depends on a superblock flag. |
62 | * | ||
63 | * (not quite yet, but soon) | ||
64 | */ | 64 | */ |
65 | #define XFS_ALLOC_BLOCK_LEN(mp) XFS_BTREE_SBLOCK_LEN | 65 | #define XFS_ALLOC_BLOCK_LEN(mp) \ |
66 | (xfs_sb_version_hascrc(&((mp)->m_sb)) ? \ | ||
67 | XFS_BTREE_SBLOCK_CRC_LEN : XFS_BTREE_SBLOCK_LEN) | ||
66 | 68 | ||
67 | /* | 69 | /* |
68 | * Record, key, and pointer address macros for btree blocks. | 70 | * Record, key, and pointer address macros for btree blocks. |