mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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:
parent
bf89d38feb
commit
3a45bb207e
22 changed files with 188 additions and 211 deletions
|
@ -5695,7 +5695,7 @@ again:
|
|||
btrfs_free_path(path);
|
||||
|
||||
/* step 4: commit the transaction, which also unpins the blocks */
|
||||
ret = btrfs_commit_transaction(trans, fs_info->tree_root);
|
||||
ret = btrfs_commit_transaction(trans);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@ -5707,7 +5707,7 @@ again:
|
|||
return 0;
|
||||
error:
|
||||
if (wc.trans)
|
||||
btrfs_end_transaction(wc.trans, fs_info->tree_root);
|
||||
btrfs_end_transaction(wc.trans);
|
||||
btrfs_free_path(path);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue