Message ID | 1431508536-7275-2-git-send-email-quwenruo@cn.fujitsu.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Wed, May 13, 2015 at 05:15:33PM +0800, Qu Wenruo wrote: > 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> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/ctree.h b/ctree.h index 10dc838..af70c6f 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
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> --- ctree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)