diff options
Diffstat (limited to 'fs/btrfs/ref-cache.h')
-rw-r--r-- | fs/btrfs/ref-cache.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/btrfs/ref-cache.h b/fs/btrfs/ref-cache.h index c361b321c0c3..617564787f52 100644 --- a/fs/btrfs/ref-cache.h +++ b/fs/btrfs/ref-cache.h | |||
@@ -27,6 +27,7 @@ struct btrfs_extent_info { | |||
27 | 27 | ||
28 | struct btrfs_leaf_ref { | 28 | struct btrfs_leaf_ref { |
29 | struct rb_node rb_node; | 29 | struct rb_node rb_node; |
30 | struct btrfs_leaf_ref_tree *tree; | ||
30 | int in_tree; | 31 | int in_tree; |
31 | atomic_t usage; | 32 | atomic_t usage; |
32 | 33 | ||
@@ -64,8 +65,10 @@ struct btrfs_leaf_ref *btrfs_alloc_leaf_ref(struct btrfs_root *root, | |||
64 | void btrfs_free_leaf_ref(struct btrfs_root *root, struct btrfs_leaf_ref *ref); | 65 | void btrfs_free_leaf_ref(struct btrfs_root *root, struct btrfs_leaf_ref *ref); |
65 | struct btrfs_leaf_ref *btrfs_lookup_leaf_ref(struct btrfs_root *root, | 66 | struct btrfs_leaf_ref *btrfs_lookup_leaf_ref(struct btrfs_root *root, |
66 | u64 bytenr); | 67 | u64 bytenr); |
67 | int btrfs_add_leaf_ref(struct btrfs_root *root, struct btrfs_leaf_ref *ref); | 68 | int btrfs_add_leaf_ref(struct btrfs_root *root, struct btrfs_leaf_ref *ref, |
68 | int btrfs_remove_leaf_refs(struct btrfs_root *root, u64 max_root_gen); | 69 | int shared); |
70 | int btrfs_remove_leaf_refs(struct btrfs_root *root, u64 max_root_gen, | ||
71 | int shared); | ||
69 | int btrfs_remove_leaf_ref(struct btrfs_root *root, struct btrfs_leaf_ref *ref); | 72 | int btrfs_remove_leaf_ref(struct btrfs_root *root, struct btrfs_leaf_ref *ref); |
70 | 73 | ||
71 | #endif | 74 | #endif |