]> git.baikalelectronics.ru Git - kernel.git/commit
mm: bdi: allow setting a maximum for the bdi dirty limit
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 30 Apr 2008 07:54:36 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:50 +0000 (08:29 -0700)
commit29435068499cb9d8f66b99b6c41193acd251b2a7
tree98cdf246280c59e0bf044ae6d2c229fc27b73203
parenta601e3f490c1bc502858fa43640a1396d0fb59ad
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>
Documentation/ABI/testing/sysfs-class-bdi
include/linux/backing-dev.h
include/linux/proportions.h
lib/proportions.c
mm/backing-dev.c
mm/page-writeback.c