writeback: dirty inodes against their matching cgroup bdi_writeback's
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:14:02 +0000 (17:14 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:37 +0000 (08:33 -0600)
__mark_inode_dirty() always dirtied the inode against the root wb
(bdi_writeback).  The previous patches added all the infrastructure
necessary to attribute an inode against the wb of the dirtying cgroup.

This patch updates __mark_inode_dirty() so that it uses the wb
associated with the inode instead of unconditionally using the root
one.

Currently, none of the filesystems has FS_CGROUP_WRITEBACK and all
pages will keep being dirtied against the root wb.

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>
fs/fs-writeback.c

Simple merge