]> Pileus Git - ~andy/linux/blobdiff - block/blk-cgroup.c
cgroup: pass around cgroup_subsys_state instead of cgroup in file methods
[~andy/linux] / block / blk-cgroup.c
index 34063739745b1c4ba15b6afac9cd99f68114be49..f46f3c69179c5f31ec7201f5816c2eec90e64e23 100644 (file)
@@ -437,10 +437,10 @@ struct request_list *__blk_queue_next_rl(struct request_list *rl,
        return &blkg->rl;
 }
 
-static int blkcg_reset_stats(struct cgroup *cgroup, struct cftype *cftype,
-                            u64 val)
+static int blkcg_reset_stats(struct cgroup_subsys_state *css,
+                            struct cftype *cftype, u64 val)
 {
-       struct blkcg *blkcg = cgroup_to_blkcg(cgroup);
+       struct blkcg *blkcg = css_to_blkcg(css);
        struct blkcg_gq *blkg;
        int i;