summaryrefslogtreecommitdiff
path: root/transaction.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-08-16 11:13:05 +0300
committerDavid Sterba <dsterba@suse.com>2018-10-23 14:48:41 +0200
commitd8a5e756be6beb47d315165610f68f18ae21fe39 (patch)
tree4193ef6e2e8170df8ce3e396ab149d245c02638f /transaction.c
parentc6039704c580aeac32d26d858f402be537cbe819 (diff)
btrfs-progs: Make btrfs_write_dirty_block_groups take only trans argument
The root argument is used only to get a reference to the fs_info, this can be achieved with the transaction handle being passed so use that. This is in preparation for moving this function in the main transaction commit routine. No functional changes. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'transaction.c')
-rw-r--r--transaction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transaction.c b/transaction.c
index 1e2a7b96..20a78c73 100644
--- a/transaction.c
+++ b/transaction.c
@@ -61,7 +61,7 @@ static int update_cowonly_root(struct btrfs_trans_handle *trans,
u64 old_root_bytenr;
struct btrfs_root *tree_root = root->fs_info->tree_root;
- btrfs_write_dirty_block_groups(trans, root);
+ btrfs_write_dirty_block_groups(trans);
while(1) {
old_root_bytenr = btrfs_root_bytenr(&root->root_item);
if (old_root_bytenr == root->node->start)
@@ -76,7 +76,7 @@ static int update_cowonly_root(struct btrfs_trans_handle *trans,
&root->root_item);
if (ret < 0)
return ret;
- btrfs_write_dirty_block_groups(trans, root);
+ btrfs_write_dirty_block_groups(trans);
}
return 0;
}