diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-05-10 12:36:17 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-05-10 12:36:17 -0400 |
commit | 509659cde578d891445afd67d87121dd13e71596 (patch) | |
tree | 17d663e2fed7c1674c5cd9c02f30ef3a56afcaf2 /fs/btrfs/ctree.h | |
parent | 8d7be552a733e53135a91d2d28f57ab87dc0e889 (diff) |
Btrfs: switch to crc32c instead of sha256
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 92a6078de827..d8caeba5d758 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -30,6 +30,8 @@ extern struct kmem_cache *btrfs_path_cachep; | |||
30 | 30 | ||
31 | /* 32 bytes in various csum fields */ | 31 | /* 32 bytes in various csum fields */ |
32 | #define BTRFS_CSUM_SIZE 32 | 32 | #define BTRFS_CSUM_SIZE 32 |
33 | /* four bytes for CRC32 */ | ||
34 | #define BTRFS_CRC32_SIZE 4 | ||
33 | 35 | ||
34 | /* | 36 | /* |
35 | * the key defines the order in the tree, and so it also defines (optimal) | 37 | * the key defines the order in the tree, and so it also defines (optimal) |
@@ -235,7 +237,7 @@ struct btrfs_file_extent_item { | |||
235 | } __attribute__ ((__packed__)); | 237 | } __attribute__ ((__packed__)); |
236 | 238 | ||
237 | struct btrfs_csum_item { | 239 | struct btrfs_csum_item { |
238 | u8 csum[BTRFS_CSUM_SIZE]; | 240 | u8 csum; |
239 | } __attribute__ ((__packed__)); | 241 | } __attribute__ ((__packed__)); |
240 | 242 | ||
241 | struct btrfs_device_item { | 243 | struct btrfs_device_item { |