diff options
Diffstat (limited to 'include/linux/writeback.h')
| -rw-r--r-- | include/linux/writeback.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 72a5d647a5f2..0ead399e08b5 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
| @@ -10,8 +10,6 @@ | |||
| 10 | struct backing_dev_info; | 10 | struct backing_dev_info; |
| 11 | 11 | ||
| 12 | extern spinlock_t inode_lock; | 12 | extern spinlock_t inode_lock; |
| 13 | extern struct list_head inode_in_use; | ||
| 14 | extern struct list_head inode_unused; | ||
| 15 | 13 | ||
| 16 | /* | 14 | /* |
| 17 | * fs/fs-writeback.c | 15 | * fs/fs-writeback.c |
| @@ -60,7 +58,9 @@ struct writeback_control { | |||
| 60 | struct bdi_writeback; | 58 | struct bdi_writeback; |
| 61 | int inode_wait(void *); | 59 | int inode_wait(void *); |
| 62 | void writeback_inodes_sb(struct super_block *); | 60 | void writeback_inodes_sb(struct super_block *); |
| 61 | void writeback_inodes_sb_nr(struct super_block *, unsigned long nr); | ||
| 63 | int writeback_inodes_sb_if_idle(struct super_block *); | 62 | int writeback_inodes_sb_if_idle(struct super_block *); |
| 63 | int writeback_inodes_sb_nr_if_idle(struct super_block *, unsigned long nr); | ||
| 64 | void sync_inodes_sb(struct super_block *); | 64 | void sync_inodes_sb(struct super_block *); |
| 65 | void writeback_inodes_wb(struct bdi_writeback *wb, | 65 | void writeback_inodes_wb(struct bdi_writeback *wb, |
| 66 | struct writeback_control *wbc); | 66 | struct writeback_control *wbc); |
| @@ -143,12 +143,16 @@ typedef int (*writepage_t)(struct page *page, struct writeback_control *wbc, | |||
| 143 | 143 | ||
| 144 | int generic_writepages(struct address_space *mapping, | 144 | int generic_writepages(struct address_space *mapping, |
| 145 | struct writeback_control *wbc); | 145 | struct writeback_control *wbc); |
| 146 | void tag_pages_for_writeback(struct address_space *mapping, | ||
| 147 | pgoff_t start, pgoff_t end); | ||
| 146 | int write_cache_pages(struct address_space *mapping, | 148 | int write_cache_pages(struct address_space *mapping, |
| 147 | struct writeback_control *wbc, writepage_t writepage, | 149 | struct writeback_control *wbc, writepage_t writepage, |
| 148 | void *data); | 150 | void *data); |
| 149 | int do_writepages(struct address_space *mapping, struct writeback_control *wbc); | 151 | int do_writepages(struct address_space *mapping, struct writeback_control *wbc); |
| 150 | void set_page_dirty_balance(struct page *page, int page_mkwrite); | 152 | void set_page_dirty_balance(struct page *page, int page_mkwrite); |
| 151 | void writeback_set_ratelimit(void); | 153 | void writeback_set_ratelimit(void); |
| 154 | void tag_pages_for_writeback(struct address_space *mapping, | ||
| 155 | pgoff_t start, pgoff_t end); | ||
| 152 | 156 | ||
| 153 | /* pdflush.c */ | 157 | /* pdflush.c */ |
| 154 | extern int nr_pdflush_threads; /* Global so it can be exported to sysctl | 158 | extern int nr_pdflush_threads; /* Global so it can be exported to sysctl |
