From: Tejun Heo Date: Fri, 22 May 2015 21:13:46 +0000 (-0400) Subject: writeback: implement backing_dev_info->tot_write_bandwidth X-Git-Tag: omap-for-v4.2/fixes-rc1^2~117^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=766a9d6e60578f1ef6de71f89f022084f8bffc82;p=pandora-kernel.git writeback: implement backing_dev_info->tot_write_bandwidth cgroup writeback support needs to keep track of the sum of avg_write_bandwidth of all wb's (bdi_writeback's) with dirty inodes to distribute write workload. This patch adds bdi->tot_write_bandwidth and updates inode_wb_list_move_locked(), inode_wb_list_del_locked() and wb_update_write_bandwidth() to adjust it as wb's gain and lose dirty inodes and its avg_write_bandwidth gets updated. As the update events are not synchronized with each other, bdi->tot_write_bandwidth is an atomic_long_t. Signed-off-by: Tejun Heo Cc: Jens Axboe Cc: Jan Kara Signed-off-by: Jens Axboe --- Reading git-diff-tree failed