aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-26 16:46:15 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-26 16:46:15 -0400
commit9078a3e1e4e489dddc636c7bb8780349d4298743 (patch)
tree98597a438d60fc8722c7562b79cecaa303b4721d /fs/btrfs/transaction.c
parentf2458e1d8c90958ed3631654cb7fd5ab01478505 (diff)
Btrfs: start of block group code
Signed-off-by: Chris Mason <chris.mason@oracle.com>
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}