aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
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 372b61f5733f..55289b71056e 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -481,11 +481,12 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
481 struct btrfs_transaction *cur_trans; 481 struct btrfs_transaction *cur_trans;
482 struct btrfs_transaction *prev_trans = NULL; 482 struct btrfs_transaction *prev_trans = NULL;
483 struct list_head dirty_fs_roots; 483 struct list_head dirty_fs_roots;
484 struct radix_tree_root pinned_copy; 484 struct extent_map_tree pinned_copy;
485 DEFINE_WAIT(wait); 485 DEFINE_WAIT(wait);
486 int ret; 486 int ret;
487 487
488 init_bit_radix(&pinned_copy); 488 extent_map_tree_init(&pinned_copy,
489 root->fs_info->btree_inode->i_mapping, GFP_NOFS);
489 INIT_LIST_HEAD(&dirty_fs_roots); 490 INIT_LIST_HEAD(&dirty_fs_roots);
490 491
491 mutex_lock(&root->fs_info->trans_mutex); 492 mutex_lock(&root->fs_info->trans_mutex);