From: Tejun Heo Date: Fri, 22 May 2015 21:13:49 +0000 (-0400) Subject: writeback: make bdi->min/max_ratio handling cgroup writeback aware X-Git-Tag: omap-for-v4.2/fixes-rc1^2~117^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=693108a8a6672cec88265d83f7187dc83ba1d6a3;p=pandora-kernel.git 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 Cc: Jens Axboe Cc: Jan Kara Signed-off-by: Jens Axboe --- Reading git-diff-tree failed