From 20ce7d3ee644c10c5a1709a3faed8045a3e729b7 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Wed, 13 May 2015 17:15:33 +0800 Subject: [PATCH] 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 Signed-off-by: David Sterba --- ctree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctree.h b/ctree.h index 79a3310b..f14a7959 100644 --- a/ctree.h +++ b/ctree.h @@ -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 -- 2.34.1