btrfs: turn checksum type define into an enum
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 30 Aug 2019 11:36:08 +0000 (13:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:19 +0000 (14:59 +0200)
Turn the checksum type definition into a enum. This eases later addition
of new checksums.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
include/uapi/linux/btrfs_tree.h

index 71246c1941aae479b7e3953b13df8b1163af1cc1..b65c7ee75bc7e996c644b58f836438f6791ab94b 100644 (file)
 #define BTRFS_CSUM_SIZE 32
 
 /* csum types */
-#define BTRFS_CSUM_TYPE_CRC32  0
+enum btrfs_csum_type {
+       BTRFS_CSUM_TYPE_CRC32   = 0,
+};
 
 /*
  * flags definitions for directory entry item type