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 6bee8e5204fb..acd532af8e55 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -447,6 +447,9 @@ static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans, | |||
447 | 447 | ||
448 | update_ref_for_cow(trans, root, buf, cow, &last_ref); | 448 | update_ref_for_cow(trans, root, buf, cow, &last_ref); |
449 | 449 | ||
450 | if (root->ref_cows) | ||
451 | btrfs_reloc_cow_block(trans, root, buf, cow); | ||
452 | |||
450 | if (buf == root->node) { | 453 | if (buf == root->node) { |
451 | WARN_ON(parent && parent != buf); | 454 | WARN_ON(parent && parent != buf); |
452 | if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || | 455 | if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || |