]> Git Repo - linux.git/commitdiff
btrfs: turn checksum type define into an enum
authorJohannes Thumshirn <[email protected]>
Fri, 30 Aug 2019 11:36:08 +0000 (13:36 +0200)
committerDavid Sterba <[email protected]>
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 <[email protected]>
Signed-off-by: Johannes Thumshirn <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
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
This page took 0.067158 seconds and 4 git commands to generate.