blkio: Propagate cgroup weight updation to cfq groups
[linux-2.6-block.git] / block / cfq-iosched.c
index 3d99e45789bd0176e0af0ee85223ed5a2c04934a..f7364621613a49686955c621a38fa345113dd10e 100644 (file)
@@ -922,6 +922,12 @@ static inline struct cfq_group *cfqg_of_blkg(struct blkio_group *blkg)
        return NULL;
 }
 
+void
+cfq_update_blkio_group_weight(struct blkio_group *blkg, unsigned int weight)
+{
+       cfqg_of_blkg(blkg)->weight = weight;
+}
+
 static struct cfq_group *
 cfq_find_alloc_cfqg(struct cfq_data *cfqd, struct cgroup *cgroup, int create)
 {