Use enum to replace macro definitions of extent types.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -737,10 +737,12 @@ struct btrfs_balance_item { · 736 unmodified lines | ||
| 737 | 737 | __le64 unused[4]; |
| 738 | 738 | } __attribute__ ((__packed__)); |
| 739 | 739 | |
| 740 | −#define BTRFS_FILE_EXTENT_INLINE 0 | |
| 741 | −#define BTRFS_FILE_EXTENT_REG 1 | |
| 742 | −#define BTRFS_FILE_EXTENT_PREALLOC 2 | |
| 743 | −#define BTRFS_FILE_EXTENT_TYPES 2 | |
| 740 | +enum { | |
| 741 | + BTRFS_FILE_EXTENT_INLINE = 0, | |
| 742 | + BTRFS_FILE_EXTENT_REG = 1, | |
| 743 | + BTRFS_FILE_EXTENT_PREALLOC = 2, | |
| 744 | + BTRFS_NR_FILE_EXTENT_TYPES = 3, | |
| 745 | +}; | |
| 744 | 746 | |
| 745 | 747 | struct btrfs_file_extent_item { |
| 746 | 748 | /* |