diff options
| author | H. Peter Anvin <hpa@linux.intel.com> | 2012-01-19 15:56:50 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-01-19 15:56:50 -0500 |
| commit | 282f445a779ed76fca9884fe377bf56a3088b208 (patch) | |
| tree | d9abcf526baee0100672851e0a8894c19e762a39 /include/linux/writeback.h | |
| parent | 68f30fbee19cc67849b9fa8e153ede70758afe81 (diff) | |
| parent | 90a4c0f51e8e44111a926be6f4c87af3938a79c3 (diff) | |
Merge remote-tracking branch 'linus/master' into x86/urgent
Diffstat (limited to 'include/linux/writeback.h')
| -rw-r--r-- | include/linux/writeback.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index a378c295851f..995b8bf630ac 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
| @@ -7,6 +7,8 @@ | |||
| 7 | #include <linux/sched.h> | 7 | #include <linux/sched.h> |
| 8 | #include <linux/fs.h> | 8 | #include <linux/fs.h> |
| 9 | 9 | ||
| 10 | DECLARE_PER_CPU(int, dirty_throttle_leaks); | ||
| 11 | |||
| 10 | /* | 12 | /* |
| 11 | * The 1/4 region under the global dirty thresh is for smooth dirty throttling: | 13 | * The 1/4 region under the global dirty thresh is for smooth dirty throttling: |
| 12 | * | 14 | * |
| @@ -23,11 +25,6 @@ | |||
| 23 | #define DIRTY_SCOPE 8 | 25 | #define DIRTY_SCOPE 8 |
| 24 | #define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2) | 26 | #define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2) |
| 25 | 27 | ||
| 26 | /* | ||
| 27 | * 4MB minimal write chunk size | ||
| 28 | */ | ||
| 29 | #define MIN_WRITEBACK_PAGES (4096UL >> (PAGE_CACHE_SHIFT - 10)) | ||
| 30 | |||
| 31 | struct backing_dev_info; | 28 | struct backing_dev_info; |
| 32 | 29 | ||
| 33 | /* | 30 | /* |
| @@ -124,6 +121,7 @@ void laptop_mode_timer_fn(unsigned long data); | |||
| 124 | static inline void laptop_sync_completion(void) { } | 121 | static inline void laptop_sync_completion(void) { } |
| 125 | #endif | 122 | #endif |
| 126 | void throttle_vm_writeout(gfp_t gfp_mask); | 123 | void throttle_vm_writeout(gfp_t gfp_mask); |
| 124 | bool zone_dirty_ok(struct zone *zone); | ||
| 127 | 125 | ||
| 128 | extern unsigned long global_dirty_limit; | 126 | extern unsigned long global_dirty_limit; |
| 129 | 127 | ||
| @@ -138,8 +136,6 @@ extern int vm_highmem_is_dirtyable; | |||
| 138 | extern int block_dump; | 136 | extern int block_dump; |
| 139 | extern int laptop_mode; | 137 | extern int laptop_mode; |
| 140 | 138 | ||
| 141 | extern unsigned long determine_dirtyable_memory(void); | ||
| 142 | |||
| 143 | extern int dirty_background_ratio_handler(struct ctl_table *table, int write, | 139 | extern int dirty_background_ratio_handler(struct ctl_table *table, int write, |
| 144 | void __user *buffer, size_t *lenp, | 140 | void __user *buffer, size_t *lenp, |
| 145 | loff_t *ppos); | 141 | loff_t *ppos); |
| @@ -195,6 +191,8 @@ void writeback_set_ratelimit(void); | |||
| 195 | void tag_pages_for_writeback(struct address_space *mapping, | 191 | void tag_pages_for_writeback(struct address_space *mapping, |
| 196 | pgoff_t start, pgoff_t end); | 192 | pgoff_t start, pgoff_t end); |
| 197 | 193 | ||
| 194 | void account_page_redirty(struct page *page); | ||
| 195 | |||
| 198 | /* pdflush.c */ | 196 | /* pdflush.c */ |
| 199 | extern int nr_pdflush_threads; /* Global so it can be exported to sysctl | 197 | extern int nr_pdflush_threads; /* Global so it can be exported to sysctl |
| 200 | read-only. */ | 198 | read-only. */ |
