Skip to content

Commit e35b79a

Browse files
Johannes Thumshirnkdave
authored andcommitted
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 <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 84fe47a commit e35b79a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/uapi/linux/btrfs_tree.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@
300300
#define BTRFS_CSUM_SIZE 32
301301

302302
/* csum types */
303-
#define BTRFS_CSUM_TYPE_CRC32 0
303+
enum btrfs_csum_type {
304+
BTRFS_CSUM_TYPE_CRC32 = 0,
305+
};
304306

305307
/*
306308
* flags definitions for directory entry item type

0 commit comments

Comments
 (0)