summaryrefslogtreecommitdiffstats
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorTejun Heo2015-05-22 23:13:49 +0200
committerJens Axboe2015-06-02 16:33:36 +0200
commit693108a8a6672cec88265d83f7187dc83ba1d6a3 (patch)
treea2acaa3711528e7e546289dfcd3431ca8ac6fb55 /include/linux/backing-dev.h
parentwriteback: don't issue wb_writeback_work if clean (diff)
downloadkernel-qcow2-linux-693108a8a6672cec88265d83f7187dc83ba1d6a3.tar.gz
kernel-qcow2-linux-693108a8a6672cec88265d83f7187dc83ba1d6a3.tar.xz
kernel-qcow2-linux-693108a8a6672cec88265d83f7187dc83ba1d6a3.zip
writeback: make bdi->min/max_ratio handling cgroup writeback aware
bdi->min/max_ratio are user-configurable per-bdi knobs which regulate dirty limit of each bdi. For cgroup writeback, they need to be further distributed across wb's (bdi_writeback's) belonging to the configured bdi. This patch introduces wb_min_max_ratio() which distributes bdi->min/max_ratio according to a wb's proportion in the total active bandwidth of its bdi. v2: Update wb_min_max_ratio() to fix a bug where both min and max were assigned the min value and avoid calculations when possible. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/backing-dev.h')
0 files changed, 0 insertions, 0 deletions