Btrfs: check the root passed to btrfs_end_transaction
This patch only add a consistancy check to validate that the same root is passed to start_transaction and end_transaction. Subvolume quota depends on this. Signed-off-by: Arne Jansen <sensille@gmx.net>
This commit is contained in:
@@ -57,6 +57,12 @@ struct btrfs_trans_handle {
|
||||
struct btrfs_block_rsv *block_rsv;
|
||||
struct btrfs_block_rsv *orig_rsv;
|
||||
int aborted;
|
||||
/*
|
||||
* this root is only needed to validate that the root passed to
|
||||
* start_transaction is the same as the one passed to end_transaction.
|
||||
* Subvolume quota depends on this
|
||||
*/
|
||||
struct btrfs_root *root;
|
||||
};
|
||||
|
||||
struct btrfs_pending_snapshot {
|
||||
|
Reference in New Issue
Block a user