diff options
Diffstat (limited to 'fs/btrfs/transaction.h')
-rw-r--r-- | fs/btrfs/transaction.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index eef840bca91e..c157ddbe9d1e 100644 --- a/fs/btrfs/transaction.h +++ b/fs/btrfs/transaction.h | |||
@@ -16,9 +16,10 @@ | |||
16 | * Boston, MA 021110-1307, USA. | 16 | * Boston, MA 021110-1307, USA. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #ifndef __TRANSACTION__ | 19 | #ifndef __BTRFS_TRANSACTION__ |
20 | #define __TRANSACTION__ | 20 | #define __BTRFS_TRANSACTION__ |
21 | #include "btrfs_inode.h" | 21 | #include "btrfs_inode.h" |
22 | #include "ordered-data.h" | ||
22 | 23 | ||
23 | struct btrfs_transaction { | 24 | struct btrfs_transaction { |
24 | u64 transid; | 25 | u64 transid; |
@@ -30,6 +31,7 @@ struct btrfs_transaction { | |||
30 | struct list_head list; | 31 | struct list_head list; |
31 | struct extent_map_tree dirty_pages; | 32 | struct extent_map_tree dirty_pages; |
32 | unsigned long start_time; | 33 | unsigned long start_time; |
34 | struct btrfs_ordered_inode_tree ordered_inode_tree; | ||
33 | wait_queue_head_t writer_wait; | 35 | wait_queue_head_t writer_wait; |
34 | wait_queue_head_t commit_wait; | 36 | wait_queue_head_t commit_wait; |
35 | }; | 37 | }; |
@@ -90,4 +92,6 @@ int btrfs_defrag_root(struct btrfs_root *root, int cacheonly); | |||
90 | int btrfs_clean_old_snapshots(struct btrfs_root *root); | 92 | int btrfs_clean_old_snapshots(struct btrfs_root *root); |
91 | int btrfs_commit_transaction(struct btrfs_trans_handle *trans, | 93 | int btrfs_commit_transaction(struct btrfs_trans_handle *trans, |
92 | struct btrfs_root *root); | 94 | struct btrfs_root *root); |
95 | int btrfs_write_ordered_inodes(struct btrfs_trans_handle *trans, | ||
96 | struct btrfs_root *root); | ||
93 | #endif | 97 | #endif |