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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 078cb9cbf9dd..8a2545f6a5b6 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -125,6 +125,7 @@ int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans,
125 btrfs_set_super_device_root(fs_info->disk_super, 125 btrfs_set_super_device_root(fs_info->disk_super,
126 bh_blocknr(dev_root->node)); 126 bh_blocknr(dev_root->node));
127 } 127 }
128 btrfs_write_dirty_block_groups(trans, extent_root);
128 while(1) { 129 while(1) {
129 old_extent_block = btrfs_root_blocknr(&extent_root->root_item); 130 old_extent_block = btrfs_root_blocknr(&extent_root->root_item);
130 if (old_extent_block == bh_blocknr(extent_root->node)) 131 if (old_extent_block == bh_blocknr(extent_root->node))
@@ -135,6 +136,7 @@ int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans,
135 &extent_root->root_key, 136 &extent_root->root_key,
136 &extent_root->root_item); 137 &extent_root->root_item);
137 BUG_ON(ret); 138 BUG_ON(ret);
139 btrfs_write_dirty_block_groups(trans, extent_root);
138 } 140 }
139 return 0; 141 return 0;
140} 142}