diff options
author | Jan Kara <jack@suse.cz> | 2012-05-24 12:59:11 -0400 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2012-06-08 19:37:56 -0400 |
commit | eb608e3a344b3af21300360fcf868f8b4e808a8e (patch) | |
tree | 34e36bc81c8b7bf459301e1eda96062c40bccbb3 /include | |
parent | e78d4833c03e28205b3d983f0c4e586ee34785fd (diff) |
block: Convert BDI proportion calculations to flexible proportions
Convert calculations of proportion of writeback each bdi does to new flexible
proportion code. That allows us to use aging period of fixed wallclock time
which gives better proportion estimates given the hugely varying throughput of
different devices.
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/backing-dev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index b1038bd686ac..489de625cd25 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h | |||
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | #include <linux/percpu_counter.h> | 11 | #include <linux/percpu_counter.h> |
12 | #include <linux/log2.h> | 12 | #include <linux/log2.h> |
13 | #include <linux/proportions.h> | 13 | #include <linux/flex_proportions.h> |
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/fs.h> | 15 | #include <linux/fs.h> |
16 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
@@ -89,7 +89,7 @@ struct backing_dev_info { | |||
89 | unsigned long dirty_ratelimit; | 89 | unsigned long dirty_ratelimit; |
90 | unsigned long balanced_dirty_ratelimit; | 90 | unsigned long balanced_dirty_ratelimit; |
91 | 91 | ||
92 | struct prop_local_percpu completions; | 92 | struct fprop_local_percpu completions; |
93 | int dirty_exceeded; | 93 | int dirty_exceeded; |
94 | 94 | ||
95 | unsigned int min_ratio; | 95 | unsigned int min_ratio; |