diff options
Diffstat (limited to 'fs/btrfs/transaction.h')
| -rw-r--r-- | fs/btrfs/transaction.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index fe27379e368b..e8b8416c688b 100644 --- a/fs/btrfs/transaction.h +++ b/fs/btrfs/transaction.h | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | #define __BTRFS_TRANSACTION__ | 20 | #define __BTRFS_TRANSACTION__ |
| 21 | #include "btrfs_inode.h" | 21 | #include "btrfs_inode.h" |
| 22 | #include "delayed-ref.h" | 22 | #include "delayed-ref.h" |
| 23 | #include "ctree.h" | ||
| 23 | 24 | ||
| 24 | struct btrfs_transaction { | 25 | struct btrfs_transaction { |
| 25 | u64 transid; | 26 | u64 transid; |
| @@ -49,6 +50,7 @@ struct btrfs_transaction { | |||
| 49 | struct btrfs_trans_handle { | 50 | struct btrfs_trans_handle { |
| 50 | u64 transid; | 51 | u64 transid; |
| 51 | u64 bytes_reserved; | 52 | u64 bytes_reserved; |
| 53 | u64 qgroup_reserved; | ||
| 52 | unsigned long use_count; | 54 | unsigned long use_count; |
| 53 | unsigned long blocks_reserved; | 55 | unsigned long blocks_reserved; |
| 54 | unsigned long blocks_used; | 56 | unsigned long blocks_used; |
| @@ -57,12 +59,22 @@ struct btrfs_trans_handle { | |||
| 57 | struct btrfs_block_rsv *block_rsv; | 59 | struct btrfs_block_rsv *block_rsv; |
| 58 | struct btrfs_block_rsv *orig_rsv; | 60 | struct btrfs_block_rsv *orig_rsv; |
| 59 | int aborted; | 61 | int aborted; |
| 62 | int adding_csums; | ||
| 63 | /* | ||
| 64 | * this root is only needed to validate that the root passed to | ||
| 65 | * start_transaction is the same as the one passed to end_transaction. | ||
| 66 | * Subvolume quota depends on this | ||
| 67 | */ | ||
| 68 | struct btrfs_root *root; | ||
| 69 | struct seq_list delayed_ref_elem; | ||
| 70 | struct list_head qgroup_ref_list; | ||
| 60 | }; | 71 | }; |
| 61 | 72 | ||
| 62 | struct btrfs_pending_snapshot { | 73 | struct btrfs_pending_snapshot { |
| 63 | struct dentry *dentry; | 74 | struct dentry *dentry; |
| 64 | struct btrfs_root *root; | 75 | struct btrfs_root *root; |
| 65 | struct btrfs_root *snap; | 76 | struct btrfs_root *snap; |
| 77 | struct btrfs_qgroup_inherit *inherit; | ||
| 66 | /* block reservation for the operation */ | 78 | /* block reservation for the operation */ |
| 67 | struct btrfs_block_rsv block_rsv; | 79 | struct btrfs_block_rsv block_rsv; |
| 68 | /* extra metadata reseration for relocation */ | 80 | /* extra metadata reseration for relocation */ |
