diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2019-08-30 13:36:08 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 14:59:19 +0200 |
commit | e35b79a1070d681b4842dad27b1edaf9811da7e9 (patch) | |
tree | c51e13fdfa5f86a892d1a924579f71c5d1d0ac5c /include/uapi/linux/btrfs_tree.h | |
parent | 84fe47a4be931d506670a1f126c477f5c17d3a76 (diff) | |
download | lwn-e35b79a1070d681b4842dad27b1edaf9811da7e9.tar.gz lwn-e35b79a1070d681b4842dad27b1edaf9811da7e9.zip |
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>
Diffstat (limited to 'include/uapi/linux/btrfs_tree.h')
-rw-r--r-- | include/uapi/linux/btrfs_tree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h index 71246c1941aa..b65c7ee75bc7 100644 --- a/include/uapi/linux/btrfs_tree.h +++ b/include/uapi/linux/btrfs_tree.h @@ -300,7 +300,9 @@ #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 |