aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux/btrfs_tree.h
diff options
context:
space:
mode:
authorChengguang Xu2019-10-10 15:59:58 +0800
committerDavid Sterba2019-11-18 12:46:55 +0100
commitb9b1a53e180e2ab4cea42c95bf344e4bf7f524e7 (patch)
tree1f85e9eb6f2b33ebf7a7e67a913e2192970babf0 /include/uapi/linux/btrfs_tree.h
parentb2cd29596469f16e2a56bcd59d6cbf7f7652131f (diff)
btrfs: use enum for extent type defines
Use enum to replace macro definitions of extent types. Signed-off-by: Chengguang Xu <cgxu519@mykernel.net> 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.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h
index b65c7ee75bc7..44136de2f5d7 100644
--- a/include/uapi/linux/btrfs_tree.h
+++ b/include/uapi/linux/btrfs_tree.h
@@ -737,10 +737,12 @@ struct btrfs_balance_item {
__le64 unused[4];
} __attribute__ ((__packed__));
-#define BTRFS_FILE_EXTENT_INLINE 0
-#define BTRFS_FILE_EXTENT_REG 1
-#define BTRFS_FILE_EXTENT_PREALLOC 2
-#define BTRFS_FILE_EXTENT_TYPES 2
+enum {
+ BTRFS_FILE_EXTENT_INLINE = 0,
+ BTRFS_FILE_EXTENT_REG = 1,
+ BTRFS_FILE_EXTENT_PREALLOC = 2,
+ BTRFS_NR_FILE_EXTENT_TYPES = 3,
+};
struct btrfs_file_extent_item {
/*