writeback: make __writeback_single_inode() cgroup writeback aware
Metadata is always dirtied against the root cgroup and should thus be
written out only by the root cgroup writeback. This patch updates
__writeback_single_inode() so that it skips writing out metadata if
the writeback is for a non-root cgroup. wbc_skip_metadata() is added
to decide whether to skip metadata writeback.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
1 file changed