Re: [PATCH 1/2] btrfs: transaction: Add comment for btrfs transaction lifespan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 22, 2019 at 03:24:59PM +0800, Qu Wenruo wrote:
> Just a overview of the basic btrfs transaction lifespan, 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 states, the comment will include:
> - Basic explaination about current state
> - How to go next stage
> - What will happen if we call variant start_transaction() functions
> - Relationship to transaction N+1
> 
> This doesn't provide much tech details, but just a cheat sheet for
> reader to get into the code a little easier.
> 
> Signed-off-by: Qu Wenruo <wqu@xxxxxxxx>

Great, thanks.

Reviewed-by: David Sterba <dsterba@xxxxxxxx>



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux