aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r--fs/btrfs/extent_map.h5
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
33struct extent_map_tree { 35struct 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);
60void free_extent_map(struct extent_map *em); 63void free_extent_map(struct extent_map *em);
61int __init extent_map_init(void); 64int __init extent_map_init(void);
62void extent_map_exit(void); 65void extent_map_exit(void);
63int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len); 66int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len, u64 gen);
64struct extent_map *search_extent_mapping(struct extent_map_tree *tree, 67struct extent_map *search_extent_mapping(struct extent_map_tree *tree,
65 u64 start, u64 len); 68 u64 start, u64 len);
66#endif 69#endif