diff options
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r-- | fs/btrfs/btrfs_inode.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 08b286b2a2c5..d0ae226926ee 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h | |||
@@ -218,6 +218,27 @@ static inline int btrfs_inode_in_log(struct inode *inode, u64 generation) | |||
218 | return 0; | 218 | return 0; |
219 | } | 219 | } |
220 | 220 | ||
221 | struct btrfs_dio_private { | ||
222 | struct inode *inode; | ||
223 | u64 logical_offset; | ||
224 | u64 disk_bytenr; | ||
225 | u64 bytes; | ||
226 | void *private; | ||
227 | |||
228 | /* number of bios pending for this dio */ | ||
229 | atomic_t pending_bios; | ||
230 | |||
231 | /* IO errors */ | ||
232 | int errors; | ||
233 | |||
234 | /* orig_bio is our btrfs_io_bio */ | ||
235 | struct bio *orig_bio; | ||
236 | |||
237 | /* dio_bio came from fs/direct-io.c */ | ||
238 | struct bio *dio_bio; | ||
239 | u8 csum[0]; | ||
240 | }; | ||
241 | |||
221 | /* | 242 | /* |
222 | * Disable DIO read nolock optimization, so new dio readers will be forced | 243 | * Disable DIO read nolock optimization, so new dio readers will be forced |
223 | * to grab i_mutex. It is used to avoid the endless truncate due to | 244 | * to grab i_mutex. It is used to avoid the endless truncate due to |