aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/backing-dev.h5
-rw-r--r--include/linux/writeback.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h
index 469d56443c63..a008982e7c08 100644
--- a/include/linux/backing-dev.h
+++ b/include/linux/backing-dev.h
@@ -73,6 +73,11 @@ struct backing_dev_info {
73 73
74 struct percpu_counter bdi_stat[NR_BDI_STAT_ITEMS]; 74 struct percpu_counter bdi_stat[NR_BDI_STAT_ITEMS];
75 75
76 unsigned long bw_time_stamp; /* last time write bw is updated */
77 unsigned long written_stamp; /* pages written at bw_time_stamp */
78 unsigned long write_bandwidth; /* the estimated write bandwidth */
79 unsigned long avg_write_bandwidth; /* further smoothed write bw */
80
76 struct prop_local_percpu completions; 81 struct prop_local_percpu completions;
77 int dirty_exceeded; 82 int dirty_exceeded;
78 83
diff --git a/include/linux/writeback.h b/include/linux/writeback.h
index df1b7f18f100..66862f2d90c8 100644
--- a/include/linux/writeback.h
+++ b/include/linux/writeback.h
@@ -118,6 +118,9 @@ void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty);
118unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, 118unsigned long bdi_dirty_limit(struct backing_dev_info *bdi,
119 unsigned long dirty); 119 unsigned long dirty);
120 120
121void __bdi_update_bandwidth(struct backing_dev_info *bdi,
122 unsigned long start_time);
123
121void page_writeback_init(void); 124void page_writeback_init(void);
122void balance_dirty_pages_ratelimited_nr(struct address_space *mapping, 125void balance_dirty_pages_ratelimited_nr(struct address_space *mapping,
123 unsigned long nr_pages_dirtied); 126 unsigned long nr_pages_dirtied);