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) | |
download | lwn-509659cde578d891445afd67d87121dd13e71596.tar.gz lwn-509659cde578d891445afd67d87121dd13e71596.zip |
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; /* 32 bytes in various csum fields */ #define BTRFS_CSUM_SIZE 32 +/* four bytes for CRC32 */ +#define BTRFS_CRC32_SIZE 4 /* * the key defines the order in the tree, and so it also defines (optimal) @@ -235,7 +237,7 @@ struct btrfs_file_extent_item { } __attribute__ ((__packed__)); struct btrfs_csum_item { - u8 csum[BTRFS_CSUM_SIZE]; + u8 csum; } __attribute__ ((__packed__)); struct btrfs_device_item { |