diff options
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r-- | fs/btrfs/extent_map.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 1195f09761fe..2388a60bd6e3 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h | |||
@@ -23,15 +23,18 @@ struct extent_map { | |||
23 | u64 orig_start; | 23 | u64 orig_start; |
24 | u64 block_start; | 24 | u64 block_start; |
25 | u64 block_len; | 25 | u64 block_len; |
26 | u64 generation; | ||
26 | unsigned long flags; | 27 | unsigned long flags; |
27 | struct block_device *bdev; | 28 | struct block_device *bdev; |
28 | atomic_t refs; | 29 | atomic_t refs; |
29 | unsigned int in_tree; | 30 | unsigned int in_tree; |
30 | unsigned int compress_type; | 31 | unsigned int compress_type; |
32 | struct list_head list; | ||
31 | }; | 33 | }; |
32 | 34 | ||
33 | struct extent_map_tree { | 35 | struct extent_map_tree { |
34 | struct rb_root map; | 36 | struct rb_root map; |
37 | struct list_head modified_extents; | ||
35 | rwlock_t lock; | 38 | rwlock_t lock; |
36 | }; | 39 | }; |
37 | 40 | ||
@@ -60,7 +63,7 @@ struct extent_map *alloc_extent_map(void); | |||
60 | void free_extent_map(struct extent_map *em); | 63 | void free_extent_map(struct extent_map *em); |
61 | int __init extent_map_init(void); | 64 | int __init extent_map_init(void); |
62 | void extent_map_exit(void); | 65 | void extent_map_exit(void); |
63 | int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len); | 66 | int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len, u64 gen); |
64 | struct extent_map *search_extent_mapping(struct extent_map_tree *tree, | 67 | struct extent_map *search_extent_mapping(struct extent_map_tree *tree, |
65 | u64 start, u64 len); | 68 | u64 start, u64 len); |
66 | #endif | 69 | #endif |