diff options
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index b47859ccd78a..232300d13be2 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -24,11 +24,12 @@ | |||
24 | 24 | ||
25 | struct extent_state; | 25 | struct extent_state; |
26 | 26 | ||
27 | typedef int (extent_submit_bio_hook_t)(struct inode *inode, int rw, | ||
28 | struct bio *bio, int mirror_num); | ||
27 | struct extent_io_ops { | 29 | struct extent_io_ops { |
28 | int (*fill_delalloc)(struct inode *inode, u64 start, u64 end); | 30 | int (*fill_delalloc)(struct inode *inode, u64 start, u64 end); |
29 | int (*writepage_io_hook)(struct page *page, u64 start, u64 end); | 31 | int (*writepage_io_hook)(struct page *page, u64 start, u64 end); |
30 | int (*submit_bio_hook)(struct inode *inode, int rw, struct bio *bio, | 32 | extent_submit_bio_hook_t *submit_bio_hook; |
31 | int mirror_num); | ||
32 | int (*merge_bio_hook)(struct page *page, unsigned long offset, | 33 | int (*merge_bio_hook)(struct page *page, unsigned long offset, |
33 | size_t size, struct bio *bio); | 34 | size_t size, struct bio *bio); |
34 | int (*readpage_io_hook)(struct page *page, u64 start, u64 end); | 35 | int (*readpage_io_hook)(struct page *page, u64 start, u64 end); |