diff options
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r-- | fs/btrfs/extent_map.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 26ac6fe0b268..abbcbeb28c79 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h | |||
@@ -10,6 +10,7 @@ | |||
10 | 10 | ||
11 | /* bits for the flags field */ | 11 | /* bits for the flags field */ |
12 | #define EXTENT_FLAG_PINNED 0 /* this entry not yet on disk, don't free it */ | 12 | #define EXTENT_FLAG_PINNED 0 /* this entry not yet on disk, don't free it */ |
13 | #define EXTENT_FLAG_COMPRESSED 1 | ||
13 | 14 | ||
14 | struct extent_map { | 15 | struct extent_map { |
15 | struct rb_node rb_node; | 16 | struct rb_node rb_node; |
@@ -18,6 +19,7 @@ struct extent_map { | |||
18 | u64 start; | 19 | u64 start; |
19 | u64 len; | 20 | u64 len; |
20 | u64 block_start; | 21 | u64 block_start; |
22 | u64 block_len; | ||
21 | unsigned long flags; | 23 | unsigned long flags; |
22 | struct block_device *bdev; | 24 | struct block_device *bdev; |
23 | atomic_t refs; | 25 | atomic_t refs; |
@@ -38,9 +40,9 @@ static inline u64 extent_map_end(struct extent_map *em) | |||
38 | 40 | ||
39 | static inline u64 extent_map_block_end(struct extent_map *em) | 41 | static inline u64 extent_map_block_end(struct extent_map *em) |
40 | { | 42 | { |
41 | if (em->block_start + em->len < em->block_start) | 43 | if (em->block_start + em->block_len < em->block_start) |
42 | return (u64)-1; | 44 | return (u64)-1; |
43 | return em->block_start + em->len; | 45 | return em->block_start + em->block_len; |
44 | } | 46 | } |
45 | 47 | ||
46 | void extent_map_tree_init(struct extent_map_tree *tree, gfp_t mask); | 48 | void extent_map_tree_init(struct extent_map_tree *tree, gfp_t mask); |