aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r--block/blk-cgroup.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index 18b021e1c05f..44cb9086ed42 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -99,19 +99,17 @@ typedef void (blkcg_pol_init_pd_fn)(struct blkcg_gq *blkg);
99typedef void (blkcg_pol_exit_pd_fn)(struct blkcg_gq *blkg); 99typedef void (blkcg_pol_exit_pd_fn)(struct blkcg_gq *blkg);
100typedef void (blkcg_pol_reset_pd_stats_fn)(struct blkcg_gq *blkg); 100typedef void (blkcg_pol_reset_pd_stats_fn)(struct blkcg_gq *blkg);
101 101
102struct blkcg_policy_ops {
103 blkcg_pol_init_pd_fn *pd_init_fn;
104 blkcg_pol_exit_pd_fn *pd_exit_fn;
105 blkcg_pol_reset_pd_stats_fn *pd_reset_stats_fn;
106};
107
108struct blkcg_policy { 102struct blkcg_policy {
109 struct blkcg_policy_ops ops;
110 int plid; 103 int plid;
111 /* policy specific private data size */ 104 /* policy specific private data size */
112 size_t pd_size; 105 size_t pd_size;
113 /* cgroup files for the policy */ 106 /* cgroup files for the policy */
114 struct cftype *cftypes; 107 struct cftype *cftypes;
108
109 /* operations */
110 blkcg_pol_init_pd_fn *pd_init_fn;
111 blkcg_pol_exit_pd_fn *pd_exit_fn;
112 blkcg_pol_reset_pd_stats_fn *pd_reset_stats_fn;
115}; 113};
116 114
117extern struct blkcg blkcg_root; 115extern struct blkcg blkcg_root;