Skip to content

Commit

Permalink
btrfs: turn checksum type define into an enum
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Johannes Thumshirn authored and kdave committed Sep 9, 2019
1 parent 84fe47a commit e35b79a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/uapi/linux/btrfs_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e35b79a

Please sign in to comment.