diff options
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index cf32651876bf..ef8809c1e69c 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -720,6 +720,9 @@ static int balance_level(struct btrfs_trans_handle *trans, | |||
720 | /* promote the child to a root */ | 720 | /* promote the child to a root */ |
721 | child = read_node_slot(root, mid, 0); | 721 | child = read_node_slot(root, mid, 0); |
722 | BUG_ON(!child); | 722 | BUG_ON(!child); |
723 | ret = btrfs_cow_block(trans, root, child, mid, 0, &child); | ||
724 | BUG_ON(ret); | ||
725 | |||
723 | root->node = child; | 726 | root->node = child; |
724 | path->nodes[level] = NULL; | 727 | path->nodes[level] = NULL; |
725 | clean_tree_block(trans, root, mid); | 728 | clean_tree_block(trans, root, mid); |