btrfs: remove root parameter from transaction commit/end routines

Now we only use the root parameter to print the root objectid in
a tracepoint.  We can use the root parameter from the transaction
handle for that.  It's also used to join the transaction with
async commits, so we remove the comment that it's just for checking.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Jeff Mahoney 2016-09-09 21:39:03 -04:00 committed by David Sterba
parent bf89d38feb
commit 3a45bb207e
22 changed files with 188 additions and 211 deletions

View file

@ -6112,7 +6112,7 @@ again:
goto commit_trans;
if (trans)
return btrfs_end_transaction(trans, sctx->send_root);
return btrfs_end_transaction(trans);
return 0;
@ -6125,7 +6125,7 @@ commit_trans:
goto again;
}
return btrfs_commit_transaction(trans, sctx->send_root);
return btrfs_commit_transaction(trans);
}
static void btrfs_root_dec_send_in_progress(struct btrfs_root* root)