diff options
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 4112d53d4f4d..d638c54d39e9 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -463,7 +463,7 @@ int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans, | |||
463 | btrfs_extent_post_op(trans, fs_info->tree_root); | 463 | btrfs_extent_post_op(trans, fs_info->tree_root); |
464 | 464 | ||
465 | eb = btrfs_lock_root_node(fs_info->tree_root); | 465 | eb = btrfs_lock_root_node(fs_info->tree_root); |
466 | btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, 0, &eb, 0); | 466 | btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, 0, &eb); |
467 | btrfs_tree_unlock(eb); | 467 | btrfs_tree_unlock(eb); |
468 | free_extent_buffer(eb); | 468 | free_extent_buffer(eb); |
469 | 469 | ||
@@ -766,7 +766,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
766 | btrfs_set_key_type(&key, BTRFS_ROOT_ITEM_KEY); | 766 | btrfs_set_key_type(&key, BTRFS_ROOT_ITEM_KEY); |
767 | 767 | ||
768 | old = btrfs_lock_root_node(root); | 768 | old = btrfs_lock_root_node(root); |
769 | btrfs_cow_block(trans, root, old, NULL, 0, &old, 0); | 769 | btrfs_cow_block(trans, root, old, NULL, 0, &old); |
770 | 770 | ||
771 | btrfs_copy_root(trans, root, old, &tmp, objectid); | 771 | btrfs_copy_root(trans, root, old, &tmp, objectid); |
772 | btrfs_tree_unlock(old); | 772 | btrfs_tree_unlock(old); |