aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r--mm/page-writeback.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 955fe35d01e0..b8be62381396 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -437,10 +437,17 @@ void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty)
437 *pdirty = dirty; 437 *pdirty = dirty;
438} 438}
439 439
440/* 440/**
441 * bdi_dirty_limit - @bdi's share of dirty throttling threshold 441 * bdi_dirty_limit - @bdi's share of dirty throttling threshold
442 * @bdi: the backing_dev_info to query
443 * @dirty: global dirty limit in pages
444 *
445 * Returns @bdi's dirty limit in pages. The term "dirty" in the context of
446 * dirty balancing includes all PG_dirty, PG_writeback and NFS unstable pages.
447 * And the "limit" in the name is not seriously taken as hard limit in
448 * balance_dirty_pages().
442 * 449 *
443 * Allocate high/low dirty limits to fast/slow devices, in order to prevent 450 * It allocates high/low dirty limits to fast/slow devices, in order to prevent
444 * - starving fast devices 451 * - starving fast devices
445 * - piling up dirty pages (that will take long time to sync) on slow devices 452 * - piling up dirty pages (that will take long time to sync) on slow devices
446 * 453 *