diff options
| author | Grant Likely <grant.likely@secretlab.ca> | 2010-12-30 00:20:30 -0500 |
|---|---|---|
| committer | Grant Likely <grant.likely@secretlab.ca> | 2010-12-30 00:21:47 -0500 |
| commit | d392da5207352f09030e95d9ea335a4225667ec0 (patch) | |
| tree | 7d6cd1932afcad0a5619a5c504a6d93ca318187c /include/linux/writeback.h | |
| parent | e39d5ef678045d61812c1401f04fe8edb14d6359 (diff) | |
| parent | 387c31c7e5c9805b0aef8833d1731a5fe7bdea14 (diff) | |
Merge v2.6.37-rc8 into powerpc/next
Diffstat (limited to 'include/linux/writeback.h')
| -rw-r--r-- | include/linux/writeback.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index c24eca71e80c..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); |
| @@ -124,8 +124,9 @@ struct ctl_table; | |||
| 124 | int dirty_writeback_centisecs_handler(struct ctl_table *, int, | 124 | int dirty_writeback_centisecs_handler(struct ctl_table *, int, |
| 125 | void __user *, size_t *, loff_t *); | 125 | void __user *, size_t *, loff_t *); |
| 126 | 126 | ||
| 127 | void get_dirty_limits(unsigned long *pbackground, unsigned long *pdirty, | 127 | void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty); |
| 128 | unsigned long *pbdi_dirty, struct backing_dev_info *bdi); | 128 | unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, |
| 129 | unsigned long dirty); | ||
| 129 | 130 | ||
| 130 | void page_writeback_init(void); | 131 | void page_writeback_init(void); |
| 131 | void balance_dirty_pages_ratelimited_nr(struct address_space *mapping, | 132 | void balance_dirty_pages_ratelimited_nr(struct address_space *mapping, |
| @@ -142,12 +143,16 @@ typedef int (*writepage_t)(struct page *page, struct writeback_control *wbc, | |||
| 142 | 143 | ||
| 143 | int generic_writepages(struct address_space *mapping, | 144 | int generic_writepages(struct address_space *mapping, |
| 144 | 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); | ||
| 145 | int write_cache_pages(struct address_space *mapping, | 148 | int write_cache_pages(struct address_space *mapping, |
| 146 | struct writeback_control *wbc, writepage_t writepage, | 149 | struct writeback_control *wbc, writepage_t writepage, |
| 147 | void *data); | 150 | void *data); |
| 148 | int do_writepages(struct address_space *mapping, struct writeback_control *wbc); | 151 | int do_writepages(struct address_space *mapping, struct writeback_control *wbc); |
| 149 | void set_page_dirty_balance(struct page *page, int page_mkwrite); | 152 | void set_page_dirty_balance(struct page *page, int page_mkwrite); |
| 150 | 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); | ||
| 151 | 156 | ||
| 152 | /* pdflush.c */ | 157 | /* pdflush.c */ |
| 153 | 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 |
