OSDN Git Service

blkcg: don't create "io.stat" on the root cgroup
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / block / blk-cgroup.c
index ac8370c..4fa5416 100644 (file)
@@ -896,6 +896,7 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)
 struct cftype blkcg_files[] = {
        {
                .name = "stat",
+               .flags = CFTYPE_NOT_ON_ROOT,
                .seq_show = blkcg_print_stat,
        },
        { }     /* terminate */