btrfs: turn checksum type define into an enum
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>
This commit is contained in:

committed by
David Sterba

parent
84fe47a4be
commit
e35b79a107
@@ -300,7 +300,9 @@
|
|||||||
#define BTRFS_CSUM_SIZE 32
|
#define BTRFS_CSUM_SIZE 32
|
||||||
|
|
||||||
/* csum types */
|
/* csum types */
|
||||||
#define BTRFS_CSUM_TYPE_CRC32 0
|
enum btrfs_csum_type {
|
||||||
|
BTRFS_CSUM_TYPE_CRC32 = 0,
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* flags definitions for directory entry item type
|
* flags definitions for directory entry item type
|
||||||
|
Reference in New Issue
Block a user