mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
btrfs: update comment for btrfs_join_transaction_nostart()
Update the comment for btrfs_join_transaction_nostart() to be more clear about how it works and how it's different from btrfs_attach_transaction(). Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
4490e803e1
commit
19288951ff
1 changed files with 4 additions and 1 deletions
|
@ -799,7 +799,10 @@ struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *
|
|||
|
||||
/*
|
||||
* Similar to regular join but it never starts a transaction when none is
|
||||
* running or after waiting for the current one to finish.
|
||||
* running or when there's a running one at a state >= TRANS_STATE_UNBLOCKED.
|
||||
* This is similar to btrfs_attach_transaction() but it allows the join to
|
||||
* happen if the transaction commit already started but it's not yet in the
|
||||
* "doing" phase (the state is < TRANS_STATE_COMMIT_DOING).
|
||||
*/
|
||||
struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue