summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>2018-03-23 17:20:07 +0900
committerDavid Sterba <dsterba@suse.com>2018-03-30 22:15:55 +0200
commitc074434fb5f0874dcf8523191359976b668527f8 (patch)
treebd35797b19c61dca86fa2e3d2696bc6e77a8d9ec /ctree.h
parentdcb174ce2e2c9be1eaad73757d0312246560ba3d (diff)
btrfs-progs: remove BTRFS_CRC32_SIZE definition
The kernel code no longer has BTRFS_CRC32_SIZE and only uses btrfs_csum_sizes[]. So, update the progs code as well. Suggested-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ctree.h b/ctree.h
index c76849d8..fa861ba0 100644
--- a/ctree.h
+++ b/ctree.h
@@ -167,10 +167,9 @@ struct btrfs_free_space_ctl;
/* csum types */
#define BTRFS_CSUM_TYPE_CRC32 0
+/* four bytes for CRC32 */
static int btrfs_csum_sizes[] = { 4 };
-/* four bytes for CRC32 */
-#define BTRFS_CRC32_SIZE 4
#define BTRFS_EMPTY_DIR_SIZE 0
#define BTRFS_FT_UNKNOWN 0