diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-28 19:45:38 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-28 19:45:38 -0400 |
commit | f66f572037956a6646cc0c25975c8105d36f58d6 (patch) | |
tree | 39a57d2561192edb6ef06f580135e1da990aae98 /ctree.h | |
parent | 03b3655fb4b0d1c4e96338a8f8c379a32ca8e071 (diff) |
move csum fields around
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -44,11 +44,11 @@ struct btrfs_key { * every tree block (leaf or node) starts with this header. */ struct btrfs_header { + __le32 csum[8]; u8 fsid[16]; /* FS specific uuid */ __le64 blocknr; /* which block this node is supposed to live in */ __le64 generation; __le64 parentid; /* objectid of the tree root */ - __le32 csum; __le32 ham; __le16 nritems; __le16 flags; @@ -68,9 +68,10 @@ struct btrfs_buffer; * it currently lacks any block count etc etc */ struct btrfs_super_block { + /* the first 3 fields must match struct btrfs_header */ + __le32 csum[8]; u8 fsid[16]; /* FS specific uuid */ __le64 blocknr; /* this block number */ - __le32 csum; __le64 magic; __le32 blocksize; __le64 generation; |