ext2: enable cgroup writeback support
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:14:05 +0000 (17:14 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:38:04 +0000 (08:38 -0600)
Writeback now supports cgroup writeback and the generic writeback,
buffer, libfs, and mpage helpers that ext2 uses are all updated to
work with cgroup writeback.

This patch enables cgroup writeback for ext2 by adding
FS_CGROUP_WRITEBACK to its ->fs_flags.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/ext2/super.c

index d0e746e965118f9dd6410f1b65396e5650cf483a..549219d44f1c1231db1215b092544bdfe7503fde 100644 (file)
@@ -1543,7 +1543,7 @@ static struct file_system_type ext2_fs_type = {
        .name           = "ext2",
        .mount          = ext2_mount,
        .kill_sb        = kill_block_super,
-       .fs_flags       = FS_REQUIRES_DEV,
+       .fs_flags       = FS_REQUIRES_DEV | FS_CGROUP_WRITEBACK,
 };
 MODULE_ALIAS_FS("ext2");