summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2007-10-15 22:15:26 +0200
committerChris Mason2008-09-25 17:03:56 +0200
commit1a5bc167f6707542b79a55452075525620ed43f5 (patch)
tree9f87d9351928af0c5cffa057ed2df95c895d57d2 /fs/btrfs/ctree.h
parentBtrfs: Stop using radix trees for the block group cache (diff)
downloadkernel-qcow2-linux-1a5bc167f6707542b79a55452075525620ed43f5.tar.gz
kernel-qcow2-linux-1a5bc167f6707542b79a55452075525620ed43f5.tar.xz
kernel-qcow2-linux-1a5bc167f6707542b79a55452075525620ed43f5.zip
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.h16
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 {
struct btrfs_block_group_cache {
struct btrfs_key key;
struct btrfs_block_group_item item;
- u64 first_free;
- u64 last_alloc;
- u64 pinned;
- u64 last_prealloc;
int data;
int cached;
};
@@ -296,11 +292,13 @@ struct btrfs_fs_info {
struct btrfs_root *extent_root;
struct btrfs_root *tree_root;
struct radix_tree_root fs_roots_radix;
- struct radix_tree_root pending_del_radix;
- struct radix_tree_root pinned_radix;
- struct radix_tree_root extent_ins_radix;
+
struct extent_map_tree free_space_cache;
struct extent_map_tree block_group_cache;
+ struct extent_map_tree pinned_extents;
+ struct extent_map_tree pending_del;
+ struct extent_map_tree extent_ins;
+
u64 generation;
u64 last_trans_committed;
struct btrfs_transaction *running_transaction;
@@ -926,7 +924,7 @@ static inline int btrfs_set_root_name(struct btrfs_root *root,
/* extent-tree.c */
int btrfs_extent_post_op(struct btrfs_trans_handle *trans,
struct btrfs_root *root);
-int btrfs_copy_pinned(struct btrfs_root *root, struct radix_tree_root *copy);
+int btrfs_copy_pinned(struct btrfs_root *root, struct extent_map_tree *copy);
struct btrfs_block_group_cache *btrfs_lookup_block_group(struct
btrfs_fs_info *info,
u64 blocknr);
@@ -949,7 +947,7 @@ int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
*root, u64 blocknr, u64 num_blocks, int pin);
int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
- struct radix_tree_root *unpin_radix);
+ struct extent_map_tree *unpin);
int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
u64 blocknr, u64 num_blocks);