writeback: attribute stats to the matching per-cgroup bdi_writeback
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:39 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:35 +0000 (08:33 -0600)
commit910181343774cd5fed95900d9fd2cb4ff7758162
tree4f158076120521833c3eb484ce19a48725c25bd6
parentce7acfeaf0363c8b75810908448f61af04d38f91
writeback: attribute stats to the matching per-cgroup bdi_writeback

Until now, all WB_* stats were accounted against the root wb
(bdi_writeback), now that multiple wb (bdi_writeback) support is in
place, let's attributes the stats to the respective per-cgroup wb's.

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 <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
mm/page-writeback.c