diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:15:26 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:56 -0400 |
commit | 1a5bc167f6707542b79a55452075525620ed43f5 (patch) | |
tree | 9f87d9351928af0c5cffa057ed2df95c895d57d2 /fs/btrfs/ctree.h | |
parent | 96b5179d0d9b6368c203856f2ad6e8e12a8b2a2c (diff) |
Btrfs: Change the remaining radix trees used by extent-tree.c to extent_map trees
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index c6174b27fd13..256689551eb0 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -283,10 +283,6 @@ struct btrfs_block_group_item { | |||
283 | struct btrfs_block_group_cache { | 283 | struct btrfs_block_group_cache { |
284 | struct btrfs_key key; | 284 | struct btrfs_key key; |
285 | struct btrfs_block_group_item item; | 285 | struct btrfs_block_group_item item; |
286 | u64 first_free; | ||
287 | u64 last_alloc; | ||
288 | u64 pinned; | ||
289 | u64 last_prealloc; | ||
290 | int data; | 286 | int data; |
291 | int cached; | 287 | int cached; |
292 | }; | 288 | }; |
@@ -296,11 +292,13 @@ struct btrfs_fs_info { | |||
296 | struct btrfs_root *extent_root; | 292 | struct btrfs_root *extent_root; |
297 | struct btrfs_root *tree_root; | 293 | struct btrfs_root *tree_root; |
298 | struct radix_tree_root fs_roots_radix; | 294 | struct radix_tree_root fs_roots_radix; |
299 | struct radix_tree_root pending_del_radix; | 295 | |
300 | struct radix_tree_root pinned_radix; | ||
301 | struct radix_tree_root extent_ins_radix; | ||
302 | struct extent_map_tree free_space_cache; | 296 | struct extent_map_tree free_space_cache; |
303 | struct extent_map_tree block_group_cache; | 297 | struct extent_map_tree block_group_cache; |
298 | struct extent_map_tree pinned_extents; | ||
299 | struct extent_map_tree pending_del; | ||
300 | struct extent_map_tree extent_ins; | ||
301 | |||
304 | u64 generation; | 302 | u64 generation; |
305 | u64 last_trans_committed; | 303 | u64 last_trans_committed; |
306 | struct btrfs_transaction *running_transaction; | 304 | struct btrfs_transaction *running_transaction; |
@@ -926,7 +924,7 @@ static inline int btrfs_set_root_name(struct btrfs_root *root, | |||
926 | /* extent-tree.c */ | 924 | /* extent-tree.c */ |
927 | int btrfs_extent_post_op(struct btrfs_trans_handle *trans, | 925 | int btrfs_extent_post_op(struct btrfs_trans_handle *trans, |
928 | struct btrfs_root *root); | 926 | struct btrfs_root *root); |
929 | int btrfs_copy_pinned(struct btrfs_root *root, struct radix_tree_root *copy); | 927 | int btrfs_copy_pinned(struct btrfs_root *root, struct extent_map_tree *copy); |
930 | struct btrfs_block_group_cache *btrfs_lookup_block_group(struct | 928 | struct btrfs_block_group_cache *btrfs_lookup_block_group(struct |
931 | btrfs_fs_info *info, | 929 | btrfs_fs_info *info, |
932 | u64 blocknr); | 930 | u64 blocknr); |
@@ -949,7 +947,7 @@ int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root | |||
949 | *root, u64 blocknr, u64 num_blocks, int pin); | 947 | *root, u64 blocknr, u64 num_blocks, int pin); |
950 | int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, | 948 | int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, |
951 | struct btrfs_root *root, | 949 | struct btrfs_root *root, |
952 | struct radix_tree_root *unpin_radix); | 950 | struct extent_map_tree *unpin); |
953 | int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, | 951 | int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, |
954 | struct btrfs_root *root, | 952 | struct btrfs_root *root, |
955 | u64 blocknr, u64 num_blocks); | 953 | u64 blocknr, u64 num_blocks); |