summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-10-15 16:15:26 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:56 -0400
commit1a5bc167f6707542b79a55452075525620ed43f5 (patch)
tree9f87d9351928af0c5cffa057ed2df95c895d57d2 /fs/btrfs/transaction.c
parent96b5179d0d9b6368c203856f2ad6e8e12a8b2a2c (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/transaction.c')
-rw-r--r--fs/btrfs/transaction.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 372b61f5733..55289b71056 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -481,11 +481,12 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
struct btrfs_transaction *cur_trans;
struct btrfs_transaction *prev_trans = NULL;
struct list_head dirty_fs_roots;
- struct radix_tree_root pinned_copy;
+ struct extent_map_tree pinned_copy;
DEFINE_WAIT(wait);
int ret;
- init_bit_radix(&pinned_copy);
+ extent_map_tree_init(&pinned_copy,
+ root->fs_info->btree_inode->i_mapping, GFP_NOFS);
INIT_LIST_HEAD(&dirty_fs_roots);
mutex_lock(&root->fs_info->trans_mutex);