diff options
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 283110ec4ee0..2d5f67065b69 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -35,7 +35,8 @@ typedef int (extent_submit_bio_hook_t)(struct inode *inode, int rw, | |||
35 | unsigned long bio_flags); | 35 | unsigned long bio_flags); |
36 | struct extent_io_ops { | 36 | struct extent_io_ops { |
37 | int (*fill_delalloc)(struct inode *inode, struct page *locked_page, | 37 | int (*fill_delalloc)(struct inode *inode, struct page *locked_page, |
38 | u64 start, u64 end, int *page_started); | 38 | u64 start, u64 end, int *page_started, |
39 | unsigned long *nr_written); | ||
39 | int (*writepage_start_hook)(struct page *page, u64 start, u64 end); | 40 | int (*writepage_start_hook)(struct page *page, u64 start, u64 end); |
40 | int (*writepage_io_hook)(struct page *page, u64 start, u64 end); | 41 | int (*writepage_io_hook)(struct page *page, u64 start, u64 end); |
41 | extent_submit_bio_hook_t *submit_bio_hook; | 42 | extent_submit_bio_hook_t *submit_bio_hook; |
@@ -172,6 +173,9 @@ int extent_invalidatepage(struct extent_io_tree *tree, | |||
172 | int extent_write_full_page(struct extent_io_tree *tree, struct page *page, | 173 | int extent_write_full_page(struct extent_io_tree *tree, struct page *page, |
173 | get_extent_t *get_extent, | 174 | get_extent_t *get_extent, |
174 | struct writeback_control *wbc); | 175 | struct writeback_control *wbc); |
176 | int extent_write_locked_range(struct extent_io_tree *tree, struct inode *inode, | ||
177 | u64 start, u64 end, get_extent_t *get_extent, | ||
178 | int mode); | ||
175 | int extent_writepages(struct extent_io_tree *tree, | 179 | int extent_writepages(struct extent_io_tree *tree, |
176 | struct address_space *mapping, | 180 | struct address_space *mapping, |
177 | get_extent_t *get_extent, | 181 | get_extent_t *get_extent, |
@@ -256,6 +260,9 @@ int extent_range_uptodate(struct extent_io_tree *tree, | |||
256 | int extent_clear_unlock_delalloc(struct inode *inode, | 260 | int extent_clear_unlock_delalloc(struct inode *inode, |
257 | struct extent_io_tree *tree, | 261 | struct extent_io_tree *tree, |
258 | u64 start, u64 end, struct page *locked_page, | 262 | u64 start, u64 end, struct page *locked_page, |
259 | int clear_dirty, int set_writeback, | 263 | int unlock_page, |
260 | int clear_writeback); | 264 | int clear_unlock, |
265 | int clear_delalloc, int clear_dirty, | ||
266 | int set_writeback, | ||
267 | int end_writeback); | ||
261 | #endif | 268 | #endif |