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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index bfce085b1962..3c27bdfc97b9 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -70,6 +70,7 @@ struct blkio_cgroup {
70 unsigned int weight; 70 unsigned int weight;
71 spinlock_t lock; 71 spinlock_t lock;
72 struct hlist_head blkg_list; 72 struct hlist_head blkg_list;
73 struct list_head policy_list; /* list of blkio_policy_node */
73}; 74};
74 75
75struct blkio_group_stats { 76struct blkio_group_stats {
@@ -119,6 +120,15 @@ struct blkio_group {
119 struct blkio_group_stats stats; 120 struct blkio_group_stats stats;
120}; 121};
121 122
123struct blkio_policy_node {
124 struct list_head node;
125 dev_t dev;
126 unsigned int weight;
127};
128
129extern unsigned int blkcg_get_weight(struct blkio_cgroup *blkcg,
130 dev_t dev);
131
122typedef void (blkio_unlink_group_fn) (void *key, struct blkio_group *blkg); 132typedef void (blkio_unlink_group_fn) (void *key, struct blkio_group *blkg);
123typedef void (blkio_update_group_weight_fn) (struct blkio_group *blkg, 133typedef void (blkio_update_group_weight_fn) (struct blkio_group *blkg,
124 unsigned int weight); 134 unsigned int weight);