diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-05-13 17:15:33 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-05-14 15:41:08 +0200 |
commit | 20ce7d3ee644c10c5a1709a3faed8045a3e729b7 (patch) | |
tree | 5d1767597122bab4c12758e8697077fff3f5b2a8 /ctree.h | |
parent | 235072c2ee48de073afda9dedd2802eab8ff4e08 (diff) |
btrfs-progs: Remove non-exist csum size.
Current btrfs only support CRC32 as checksum algorithm.
But in btrfs_csum_sizes array, we have an extra 0 at tail, causing
csum_type 1 can still be considered as supported csum type.
Fix it by removing the tailing 0.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -149,7 +149,7 @@ struct btrfs_free_space_ctl; /* csum types */ #define BTRFS_CSUM_TYPE_CRC32 0 -static int btrfs_csum_sizes[] = { 4, 0 }; +static int btrfs_csum_sizes[] = { 4 }; /* four bytes for CRC32 */ #define BTRFS_CRC32_SIZE 4 |