diff options
| author | Qu Wenruo <[email protected]> | 2019-08-22 07:24:59 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-11-18 11:46:50 +0000 |
| commit | 61c047b541b56f4ec78886e9d695e0a3bbcd3834 (patch) | |
| tree | e37d8f8ff5d3d4d12f2c14bf8b5d97cde76eed24 /fs/btrfs/async-thread.c | |
| parent | btrfs: use has_single_bit_set for clarity (diff) | |
| download | kernel-61c047b541b56f4ec78886e9d695e0a3bbcd3834.tar.gz kernel-61c047b541b56f4ec78886e9d695e0a3bbcd3834.zip | |
btrfs: transaction: describe transaction states and transitions
Add an overview of the basic btrfs transaction transitions, including
the following states:
- No transaction states
- Transaction N [[TRANS_STATE_RUNNING]]
- Transaction N [[TRANS_STATE_COMMIT_START]]
- Transaction N [[TRANS_STATE_COMMIT_DOING]]
- Transaction N [[TRANS_STATE_UNBLOCKED]]
- Transaction N [[TRANS_STATE_COMPLETED]]
For each state, the comment will include:
- Basic explaination about current state
- How to go next stage
- What will happen if we call various start_transaction() functions
- Relationship to transaction N+1
This doesn't provide tech details, but serves as a cheat sheet for
reader to get into the code a little easier.
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions
