diff options
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 87c90387283b..bebc9fd16665 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -922,6 +922,7 @@ static noinline int balance_level(struct btrfs_trans_handle *trans, | |||
922 | spin_unlock(&root->node_lock); | 922 | spin_unlock(&root->node_lock); |
923 | 923 | ||
924 | ret = btrfs_update_extent_ref(trans, root, child->start, | 924 | ret = btrfs_update_extent_ref(trans, root, child->start, |
925 | child->len, | ||
925 | mid->start, child->start, | 926 | mid->start, child->start, |
926 | root->root_key.objectid, | 927 | root->root_key.objectid, |
927 | trans->transid, level - 1); | 928 | trans->transid, level - 1); |
@@ -2075,7 +2076,7 @@ static noinline int insert_new_root(struct btrfs_trans_handle *trans, | |||
2075 | spin_unlock(&root->node_lock); | 2076 | spin_unlock(&root->node_lock); |
2076 | 2077 | ||
2077 | ret = btrfs_update_extent_ref(trans, root, lower->start, | 2078 | ret = btrfs_update_extent_ref(trans, root, lower->start, |
2078 | lower->start, c->start, | 2079 | lower->len, lower->start, c->start, |
2079 | root->root_key.objectid, | 2080 | root->root_key.objectid, |
2080 | trans->transid, level - 1); | 2081 | trans->transid, level - 1); |
2081 | BUG_ON(ret); | 2082 | BUG_ON(ret); |