diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-04-24 04:58:55 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-04-27 13:45:01 -0400 |
commit | 517c22207b045993a6529e1f8684095adaae9cf3 (patch) | |
tree | 3ce1f91a7334f878a28ef032f97706a5b15619c0 /fs/xfs/xfs_da_btree.h | |
parent | f5ea110044fa858925a880b4fa9f551bfa2dfc38 (diff) |
xfs: add CRCs to attr leaf blocks
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_da_btree.h')
-rw-r--r-- | fs/xfs/xfs_da_btree.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_da_btree.h b/fs/xfs/xfs_da_btree.h index 6bedb3c1f5d3..0e8182c5210b 100644 --- a/fs/xfs/xfs_da_btree.h +++ b/fs/xfs/xfs_da_btree.h | |||
@@ -55,6 +55,7 @@ typedef struct xfs_da_blkinfo { | |||
55 | * magic numbers without modification for both v2 and v3 nodes. | 55 | * magic numbers without modification for both v2 and v3 nodes. |
56 | */ | 56 | */ |
57 | #define XFS_DA3_NODE_MAGIC 0x3ebe /* magic number: non-leaf blocks */ | 57 | #define XFS_DA3_NODE_MAGIC 0x3ebe /* magic number: non-leaf blocks */ |
58 | #define XFS_ATTR3_LEAF_MAGIC 0x3bee /* magic number: attribute leaf blks */ | ||
58 | #define XFS_DIR3_LEAF1_MAGIC 0x3df1 /* magic number: v2 dirlf single blks */ | 59 | #define XFS_DIR3_LEAF1_MAGIC 0x3df1 /* magic number: v2 dirlf single blks */ |
59 | #define XFS_DIR3_LEAFN_MAGIC 0x3dff /* magic number: v2 dirlf multi blks */ | 60 | #define XFS_DIR3_LEAFN_MAGIC 0x3dff /* magic number: v2 dirlf multi blks */ |
60 | 61 | ||
@@ -85,13 +86,13 @@ struct xfs_da3_blkinfo { | |||
85 | 86 | ||
86 | typedef struct xfs_da_node_hdr { | 87 | typedef struct xfs_da_node_hdr { |
87 | struct xfs_da_blkinfo info; /* block type, links, etc. */ | 88 | struct xfs_da_blkinfo info; /* block type, links, etc. */ |
88 | __be16 count; /* count of active entries */ | 89 | __be16 __count; /* count of active entries */ |
89 | __be16 __level; /* level above leaves (leaf == 0) */ | 90 | __be16 __level; /* level above leaves (leaf == 0) */ |
90 | } xfs_da_node_hdr_t; | 91 | } xfs_da_node_hdr_t; |
91 | 92 | ||
92 | struct xfs_da3_node_hdr { | 93 | struct xfs_da3_node_hdr { |
93 | struct xfs_da3_blkinfo info; /* block type, links, etc. */ | 94 | struct xfs_da3_blkinfo info; /* block type, links, etc. */ |
94 | __be16 count; /* count of active entries */ | 95 | __be16 __count; /* count of active entries */ |
95 | __be16 __level; /* level above leaves (leaf == 0) */ | 96 | __be16 __level; /* level above leaves (leaf == 0) */ |
96 | __be32 __pad32; | 97 | __be32 __pad32; |
97 | }; | 98 | }; |