diff options
author | Arne Jansen <sensille@gmx.net> | 2011-09-13 05:40:09 -0400 |
---|---|---|
committer | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-07-10 09:14:43 -0400 |
commit | d13603ef6e14a12cd65a6975e8117c0fea7c7ddf (patch) | |
tree | 9f6a11b5b8963f0663a47c7bbe73d698fb0cff71 /fs/btrfs/transaction.h | |
parent | 2f38b3e1900634e64a186873b3388b1bf85dabc0 (diff) |
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>
Diffstat (limited to 'fs/btrfs/transaction.h')
-rw-r--r-- | fs/btrfs/transaction.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index fe27379e368b..010729446e13 100644 --- a/fs/btrfs/transaction.h +++ b/fs/btrfs/transaction.h | |||
@@ -57,6 +57,12 @@ struct btrfs_trans_handle { | |||
57 | struct btrfs_block_rsv *block_rsv; | 57 | struct btrfs_block_rsv *block_rsv; |
58 | struct btrfs_block_rsv *orig_rsv; | 58 | struct btrfs_block_rsv *orig_rsv; |
59 | int aborted; | 59 | int aborted; |
60 | /* | ||
61 | * this root is only needed to validate that the root passed to | ||
62 | * start_transaction is the same as the one passed to end_transaction. | ||
63 | * Subvolume quota depends on this | ||
64 | */ | ||
65 | struct btrfs_root *root; | ||
60 | }; | 66 | }; |
61 | 67 | ||
62 | struct btrfs_pending_snapshot { | 68 | struct btrfs_pending_snapshot { |