aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/writeback.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/writeback.h')
-rw-r--r--include/linux/writeback.h12
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
10DECLARE_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
31struct backing_dev_info; 28struct backing_dev_info;
32 29
33/* 30/*
@@ -124,6 +121,7 @@ void laptop_mode_timer_fn(unsigned long data);
124static inline void laptop_sync_completion(void) { } 121static inline void laptop_sync_completion(void) { }
125#endif 122#endif
126void throttle_vm_writeout(gfp_t gfp_mask); 123void throttle_vm_writeout(gfp_t gfp_mask);
124bool zone_dirty_ok(struct zone *zone);
127 125
128extern unsigned long global_dirty_limit; 126extern unsigned long global_dirty_limit;
129 127
@@ -138,8 +136,6 @@ extern int vm_highmem_is_dirtyable;
138extern int block_dump; 136extern int block_dump;
139extern int laptop_mode; 137extern int laptop_mode;
140 138
141extern unsigned long determine_dirtyable_memory(void);
142
143extern int dirty_background_ratio_handler(struct ctl_table *table, int write, 139extern 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);
195void tag_pages_for_writeback(struct address_space *mapping, 191void tag_pages_for_writeback(struct address_space *mapping,
196 pgoff_t start, pgoff_t end); 192 pgoff_t start, pgoff_t end);
197 193
194void account_page_redirty(struct page *page);
195
198/* pdflush.c */ 196/* pdflush.c */
199extern int nr_pdflush_threads; /* Global so it can be exported to sysctl 197extern int nr_pdflush_threads; /* Global so it can be exported to sysctl
200 read-only. */ 198 read-only. */