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
|
@ -1913,7 +1913,7 @@ sleep:
|
|||
} else {
|
||||
int ret;
|
||||
|
||||
ret = btrfs_commit_transaction(trans, root);
|
||||
ret = btrfs_commit_transaction(trans);
|
||||
if (ret)
|
||||
btrfs_err(fs_info,
|
||||
"cleaner open transaction commit returned %d",
|
||||
|
@ -1965,9 +1965,9 @@ static int transaction_kthread(void *arg)
|
|||
goto sleep;
|
||||
}
|
||||
if (transid == trans->transid) {
|
||||
btrfs_commit_transaction(trans, root);
|
||||
btrfs_commit_transaction(trans);
|
||||
} else {
|
||||
btrfs_end_transaction(trans, root);
|
||||
btrfs_end_transaction(trans);
|
||||
}
|
||||
sleep:
|
||||
wake_up_process(fs_info->cleaner_kthread);
|
||||
|
@ -3901,7 +3901,7 @@ int btrfs_commit_super(struct btrfs_fs_info *fs_info)
|
|||
trans = btrfs_join_transaction(root);
|
||||
if (IS_ERR(trans))
|
||||
return PTR_ERR(trans);
|
||||
return btrfs_commit_transaction(trans, root);
|
||||
return btrfs_commit_transaction(trans);
|
||||
}
|
||||
|
||||
void close_ctree(struct btrfs_fs_info *fs_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue