]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/blk-cgroup.h
blkcg: implement interface for the unified hierarchy
[karo-tx-linux.git] / include / linux / blk-cgroup.h
index 6e016e6fee872c770aa44316ab1cf13eb7d44286..9a7c4bd45fff031e784a935a30995c73fbce0d1e 100644 (file)
@@ -148,6 +148,7 @@ typedef void (blkcg_pol_reset_pd_stats_fn)(struct blkg_policy_data *pd);
 struct blkcg_policy {
        int                             plid;
        /* cgroup files for the policy */
+       struct cftype                   *dfl_cftypes;
        struct cftype                   *legacy_cftypes;
 
        /* operations */
@@ -182,6 +183,7 @@ int blkcg_activate_policy(struct request_queue *q,
 void blkcg_deactivate_policy(struct request_queue *q,
                             const struct blkcg_policy *pol);
 
+const char *blkg_dev_name(struct blkcg_gq *blkg);
 void blkcg_print_blkgs(struct seq_file *sf, struct blkcg *blkcg,
                       u64 (*prfill)(struct seq_file *,
                                     struct blkg_policy_data *, int),
@@ -206,11 +208,11 @@ struct blkg_rwstat blkg_rwstat_recursive_sum(struct blkcg_gq *blkg,
 struct blkg_conf_ctx {
        struct gendisk                  *disk;
        struct blkcg_gq                 *blkg;
-       u64                             v;
+       char                            *body;
 };
 
 int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
-                  const char *input, struct blkg_conf_ctx *ctx);
+                  char *input, struct blkg_conf_ctx *ctx);
 void blkg_conf_finish(struct blkg_conf_ctx *ctx);