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.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index c930895bfac9..ca0ff7c0ffb6 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -34,11 +34,6 @@ enum blkio_policy_id {
34#define CFQ_WEIGHT_MAX 1000 34#define CFQ_WEIGHT_MAX 1000
35#define CFQ_WEIGHT_DEFAULT 500 35#define CFQ_WEIGHT_DEFAULT 500
36 36
37/* cft->private [un]packing for stat printing */
38#define BLKCG_STAT_PRIV(pol, off) (((unsigned)(pol) << 16) | (off))
39#define BLKCG_STAT_POL(prv) ((unsigned)(prv) >> 16)
40#define BLKCG_STAT_OFF(prv) ((unsigned)(prv) & 0xffff)
41
42enum blkg_rwstat_type { 37enum blkg_rwstat_type {
43 BLKG_RWSTAT_READ, 38 BLKG_RWSTAT_READ,
44 BLKG_RWSTAT_WRITE, 39 BLKG_RWSTAT_WRITE,
@@ -131,10 +126,8 @@ void blkcg_print_blkgs(struct seq_file *sf, struct blkio_cgroup *blkcg,
131u64 __blkg_prfill_u64(struct seq_file *sf, void *pdata, u64 v); 126u64 __blkg_prfill_u64(struct seq_file *sf, void *pdata, u64 v);
132u64 __blkg_prfill_rwstat(struct seq_file *sf, void *pdata, 127u64 __blkg_prfill_rwstat(struct seq_file *sf, void *pdata,
133 const struct blkg_rwstat *rwstat); 128 const struct blkg_rwstat *rwstat);
134int blkcg_print_stat(struct cgroup *cgrp, struct cftype *cft, 129u64 blkg_prfill_stat(struct seq_file *sf, void *pdata, int off);
135 struct seq_file *sf); 130u64 blkg_prfill_rwstat(struct seq_file *sf, void *pdata, int off);
136int blkcg_print_rwstat(struct cgroup *cgrp, struct cftype *cft,
137 struct seq_file *sf);
138 131
139struct blkg_conf_ctx { 132struct blkg_conf_ctx {
140 struct gendisk *disk; 133 struct gendisk *disk;