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 | __le64 unused[4]; | 737 | __le64 unused[4]; |
| 738 | } __attribute__ ((__packed__)); | 738 | } __attribute__ ((__packed__)); |
| 739 | 739 | ||
| 740 | #define BTRFS_FILE_EXTENT_INLINE 0 | 740 | enum { |
| 741 | #define BTRFS_FILE_EXTENT_REG 1 | 741 | BTRFS_FILE_EXTENT_INLINE = 0, |
| 742 | #define BTRFS_FILE_EXTENT_PREALLOC 2 | 742 | BTRFS_FILE_EXTENT_REG = 1, |
| 743 | #define BTRFS_FILE_EXTENT_TYPES 2 | 743 | BTRFS_FILE_EXTENT_PREALLOC = 2, |
| 744 | BTRFS_NR_FILE_EXTENT_TYPES = 3, | ||
| 745 | }; | ||
| 744 | 746 | ||
| 745 | struct btrfs_file_extent_item { | 747 | struct btrfs_file_extent_item { |
| 746 | /* | 748 | /* |