cfq-iosched: move IO controller declerations to a header file
Jens Axboe [Fri, 4 Dec 2009 09:06:35 +0000 (10:06 +0100)]
They should not be declared inside some other file that's not related
to CFQ.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

block/blk-cgroup.c
block/cfq-iosched.c
block/cfq-iosched.h [new file with mode: 0644]

index 179ddfa..73a5525 100644 (file)
@@ -14,9 +14,7 @@
 #include <linux/seq_file.h>
 #include <linux/kdev_t.h>
 #include "blk-cgroup.h"
-
-extern void cfq_unlink_blkio_group(void *, struct blkio_group *);
-extern void cfq_update_blkio_group_weight(struct blkio_group *, unsigned int);
+#include "cfq-iosched.h"
 
 struct blkio_cgroup blkio_root_cgroup = { .weight = 2*BLKIO_WEIGHT_DEFAULT };
 
index 08b057b..43ec334 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/ioprio.h>
 #include <linux/blktrace_api.h>
 #include "blk-cgroup.h"
+#include "cfq-iosched.h"
 
 /*
  * tunables
diff --git a/block/cfq-iosched.h b/block/cfq-iosched.h
new file mode 100644 (file)
index 0000000..ef7b479
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef CFQ_IOSCHED_H
+#define CFQ_IOSCHED_H
+
+void cfq_unlink_blkio_group(void *, struct blkio_group *);
+void cfq_update_blkio_group_weight(struct blkio_group *, unsigned int);
+
+#endif