aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-04-30 03:54:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 11:29:50 -0400
commita42dde04152750426cc620fd277e80fffae2f65a (patch)
tree98cdf246280c59e0bf044ae6d2c229fc27b73203 /Documentation/ABI
parent189d3c4a94ef19fca2a71a6a336e9fda900e25e7 (diff)
mm: bdi: allow setting a maximum for the bdi dirty limit
Add "max_ratio" to /sys/class/bdi. This indicates the maximum percentage of the global dirty threshold allocated to this bdi. [mszeredi@suse.cz] - fix parsing in max_ratio_store(). - export bdi_set_max_ratio() to modules - limit bdi_dirty with bdi->max_ratio - document new sysfs attribute Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-class-bdi9
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-bdi b/Documentation/ABI/testing/sysfs-class-bdi
index b9e8a9368dc6..c55e811ca180 100644
--- a/Documentation/ABI/testing/sysfs-class-bdi
+++ b/Documentation/ABI/testing/sysfs-class-bdi
@@ -49,4 +49,11 @@ min_ratio (read-write)
49 Minimal percentage of global dirty threshold allocated to this 49 Minimal percentage of global dirty threshold allocated to this
50 bdi. If the value written to this file would make the the sum 50 bdi. If the value written to this file would make the the sum
51 of all min_ratio values exceed 100, then EINVAL is returned. 51 of all min_ratio values exceed 100, then EINVAL is returned.
52 The default is zero 52 If min_ratio would become larger than the current max_ratio,
53 then also EINVAL is returned. The default is zero
54
55max_ratio (read-write)
56
57 Maximal percentage of global dirty threshold allocated to this
58 bdi. If max_ratio would become smaller than the current
59 min_ratio, then EINVAL is returned. The default is 100