CFQ: move think time check variables to a separate struct
[linux-2.6-block.git] / include / linux / iocontext.h
index b2eee896dcbc7506f528be8b06a1fe3728aca141..5037a0ad231245b3b2779c81bf76f912df467879 100644 (file)
@@ -5,6 +5,14 @@
 #include <linux/rcupdate.h>
 
 struct cfq_queue;
+struct cfq_ttime {
+       unsigned long last_end_request;
+
+       unsigned long ttime_total;
+       unsigned long ttime_samples;
+       unsigned long ttime_mean;
+};
+
 struct cfq_io_context {
        void *key;
 
@@ -12,11 +20,7 @@ struct cfq_io_context {
 
        struct io_context *ioc;
 
-       unsigned long last_end_request;
-
-       unsigned long ttime_total;
-       unsigned long ttime_samples;
-       unsigned long ttime_mean;
+       struct cfq_ttime ttime;
 
        struct list_head queue_list;
        struct hlist_node cic_list;