diff options
Diffstat (limited to 'fs/btrfs/ordered-data.h')
-rw-r--r-- | fs/btrfs/ordered-data.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index dd27a0b46a37..f29d4bf5fbe7 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h | |||
@@ -76,7 +76,7 @@ struct btrfs_ordered_sum { | |||
76 | 76 | ||
77 | #define BTRFS_ORDERED_IOERR 6 /* We had an io error when writing this out */ | 77 | #define BTRFS_ORDERED_IOERR 6 /* We had an io error when writing this out */ |
78 | 78 | ||
79 | #define BTRFS_ORDERED_UPDATED_ISIZE 7 /* indicates wether this ordered extent | 79 | #define BTRFS_ORDERED_UPDATED_ISIZE 7 /* indicates whether this ordered extent |
80 | * has done its due diligence in updating | 80 | * has done its due diligence in updating |
81 | * the isize. */ | 81 | * the isize. */ |
82 | 82 | ||
@@ -128,8 +128,11 @@ struct btrfs_ordered_extent { | |||
128 | struct list_head root_extent_list; | 128 | struct list_head root_extent_list; |
129 | 129 | ||
130 | struct btrfs_work work; | 130 | struct btrfs_work work; |
131 | }; | ||
132 | 131 | ||
132 | struct completion completion; | ||
133 | struct btrfs_work flush_work; | ||
134 | struct list_head work_list; | ||
135 | }; | ||
133 | 136 | ||
134 | /* | 137 | /* |
135 | * calculates the total size you need to allocate for an ordered sum | 138 | * calculates the total size you need to allocate for an ordered sum |
@@ -186,7 +189,7 @@ struct btrfs_ordered_extent *btrfs_lookup_ordered_range(struct inode *inode, | |||
186 | int btrfs_ordered_update_i_size(struct inode *inode, u64 offset, | 189 | int btrfs_ordered_update_i_size(struct inode *inode, u64 offset, |
187 | struct btrfs_ordered_extent *ordered); | 190 | struct btrfs_ordered_extent *ordered); |
188 | int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr, u32 *sum); | 191 | int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr, u32 *sum); |
189 | void btrfs_run_ordered_operations(struct btrfs_root *root, int wait); | 192 | int btrfs_run_ordered_operations(struct btrfs_root *root, int wait); |
190 | void btrfs_add_ordered_operation(struct btrfs_trans_handle *trans, | 193 | void btrfs_add_ordered_operation(struct btrfs_trans_handle *trans, |
191 | struct btrfs_root *root, | 194 | struct btrfs_root *root, |
192 | struct inode *inode); | 195 | struct inode *inode); |