diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-12-04 04:06:35 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-12-04 04:06:35 -0500 |
commit | f2eecb91522686edf8199947b77f435a4031d92f (patch) | |
tree | e584c9d81971fb741508c176d74ef51ff45a4bcc /block | |
parent | 2f5ea47712489a9d2d3cb832eb06062e4e64e0ec (diff) |
cfq-iosched: move IO controller declerations to a header file
They should not be declared inside some other file that's not related
to CFQ.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-cgroup.c | 4 | ||||
-rw-r--r-- | block/cfq-iosched.c | 1 | ||||
-rw-r--r-- | block/cfq-iosched.h | 7 |
3 files changed, 9 insertions, 3 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 179ddfaebc5c..73a5525cc0a2 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
@@ -14,9 +14,7 @@ | |||
14 | #include <linux/seq_file.h> | 14 | #include <linux/seq_file.h> |
15 | #include <linux/kdev_t.h> | 15 | #include <linux/kdev_t.h> |
16 | #include "blk-cgroup.h" | 16 | #include "blk-cgroup.h" |
17 | 17 | #include "cfq-iosched.h" | |
18 | extern void cfq_unlink_blkio_group(void *, struct blkio_group *); | ||
19 | extern void cfq_update_blkio_group_weight(struct blkio_group *, unsigned int); | ||
20 | 18 | ||
21 | struct blkio_cgroup blkio_root_cgroup = { .weight = 2*BLKIO_WEIGHT_DEFAULT }; | 19 | struct blkio_cgroup blkio_root_cgroup = { .weight = 2*BLKIO_WEIGHT_DEFAULT }; |
22 | 20 | ||
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 08b057b1b3b2..43ec3340cb58 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/ioprio.h> | 14 | #include <linux/ioprio.h> |
15 | #include <linux/blktrace_api.h> | 15 | #include <linux/blktrace_api.h> |
16 | #include "blk-cgroup.h" | 16 | #include "blk-cgroup.h" |
17 | #include "cfq-iosched.h" | ||
17 | 18 | ||
18 | /* | 19 | /* |
19 | * tunables | 20 | * tunables |
diff --git a/block/cfq-iosched.h b/block/cfq-iosched.h new file mode 100644 index 000000000000..ef7b4798a349 --- /dev/null +++ b/block/cfq-iosched.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef CFQ_IOSCHED_H | ||
2 | #define CFQ_IOSCHED_H | ||
3 | |||
4 | void cfq_unlink_blkio_group(void *, struct blkio_group *); | ||
5 | void cfq_update_blkio_group_weight(struct blkio_group *, unsigned int); | ||
6 | |||
7 | #endif | ||