From: Tejun Heo Date: Fri, 22 May 2015 21:13:40 +0000 (-0400) Subject: writeback: let balance_dirty_pages() work on the matching cgroup bdi_writeback X-Git-Tag: omap-for-v4.2/fixes-rc1^2~117^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfb8ae567835425d27db8acc6c9fc5db88d38e2b;p=pandora-kernel.git writeback: let balance_dirty_pages() work on the matching cgroup bdi_writeback Currently, balance_dirty_pages() always work on bdi->wb. This patch updates it to work on the wb (bdi_writeback) matching memcg and blkcg of the current task as that's what the inode is being dirtied against. balance_dirty_pages_ratelimited() now pins the current wb and passes it to balance_dirty_pages(). As no filesystem has FS_CGROUP_WRITEBACK yet, this doesn't lead to visible behavior differences. v2: Updated for per-inode wb association. Signed-off-by: Tejun Heo Cc: Jens Axboe Cc: Jan Kara Signed-off-by: Jens Axboe --- Reading git-diff-tree failed