diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mpage.h | 1 | ||||
-rw-r--r-- | include/linux/writeback.h | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/mpage.h b/include/linux/mpage.h index cc5fb75af78a..068a0c9946af 100644 --- a/include/linux/mpage.h +++ b/include/linux/mpage.h | |||
@@ -12,7 +12,6 @@ | |||
12 | #ifdef CONFIG_BLOCK | 12 | #ifdef CONFIG_BLOCK |
13 | 13 | ||
14 | struct writeback_control; | 14 | struct writeback_control; |
15 | typedef int (writepage_t)(struct page *page, struct writeback_control *wbc); | ||
16 | 15 | ||
17 | int mpage_readpages(struct address_space *mapping, struct list_head *pages, | 16 | int mpage_readpages(struct address_space *mapping, struct list_head *pages, |
18 | unsigned nr_pages, get_block_t get_block); | 17 | unsigned nr_pages, get_block_t get_block); |
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index daa6c125f66e..050915b59576 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
@@ -111,9 +111,15 @@ balance_dirty_pages_ratelimited(struct address_space *mapping) | |||
111 | balance_dirty_pages_ratelimited_nr(mapping, 1); | 111 | balance_dirty_pages_ratelimited_nr(mapping, 1); |
112 | } | 112 | } |
113 | 113 | ||
114 | typedef int (*writepage_t)(struct page *page, struct writeback_control *wbc, | ||
115 | void *data); | ||
116 | |||
114 | int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0); | 117 | int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0); |
115 | extern int generic_writepages(struct address_space *mapping, | 118 | int generic_writepages(struct address_space *mapping, |
116 | struct writeback_control *wbc); | 119 | struct writeback_control *wbc); |
120 | int write_cache_pages(struct address_space *mapping, | ||
121 | struct writeback_control *wbc, writepage_t writepage, | ||
122 | void *data); | ||
117 | int do_writepages(struct address_space *mapping, struct writeback_control *wbc); | 123 | int do_writepages(struct address_space *mapping, struct writeback_control *wbc); |
118 | int sync_page_range(struct inode *inode, struct address_space *mapping, | 124 | int sync_page_range(struct inode *inode, struct address_space *mapping, |
119 | loff_t pos, loff_t count); | 125 | loff_t pos, loff_t count); |