aboutsummaryrefslogtreecommitdiffstats
path: root/block/cfq-iosched.c
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2009-12-04 10:36:41 -0500
committerJens Axboe <jens.axboe@oracle.com>2009-12-04 10:38:14 -0500
commit9d6a986c0b276085f7944cd8ad65f4f82aff7536 (patch)
tree1e72c813f4346ee329d5d427e214d183af78934f /block/cfq-iosched.c
parentb69f2292063d2caf37ca9aec7d63ded203701bf3 (diff)
blkio: Export some symbols from blkio as its user CFQ can be a module
o blkio controller is inside the kernel and cfq makes use of interfaces exported by blkio. CFQ can be a module too, hence export symbols used by CFQ. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r--block/cfq-iosched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index b00ca4c86e25..7f3f343b0c65 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -961,7 +961,7 @@ cfq_find_alloc_cfqg(struct cfq_data *cfqd, struct cgroup *cgroup, int create)
961 unsigned int major, minor; 961 unsigned int major, minor;
962 962
963 /* Do we need to take this reference */ 963 /* Do we need to take this reference */
964 if (!css_tryget(&blkcg->css)) 964 if (!blkiocg_css_tryget(blkcg))
965 return NULL;; 965 return NULL;;
966 966
967 cfqg = cfqg_of_blkg(blkiocg_lookup_group(blkcg, key)); 967 cfqg = cfqg_of_blkg(blkiocg_lookup_group(blkcg, key));
@@ -994,7 +994,7 @@ cfq_find_alloc_cfqg(struct cfq_data *cfqd, struct cgroup *cgroup, int create)
994 hlist_add_head(&cfqg->cfqd_node, &cfqd->cfqg_list); 994 hlist_add_head(&cfqg->cfqd_node, &cfqd->cfqg_list);
995 995
996done: 996done:
997 css_put(&blkcg->css); 997 blkiocg_css_put(blkcg);
998 return cfqg; 998 return cfqg;
999} 999}
1000 1000