summaryrefslogtreecommitdiff
path: root/include/linux/batch_complete.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2013-03-07 14:29:23 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-03-07 14:29:23 +1100
commit30c4fbf7e3977ec8c2966a633cd281b44e3a63fd (patch)
treeb8d7dc9ac82e3f179d886311a6b73c9c5c52c35d /include/linux/batch_complete.h
parent725a7c316ea0d1329b630e31f82d0a2e762e0a65 (diff)
parentdf2363d9ad7ffd43b5e86604c7a28f4adc6bd75e (diff)
Merge branch 'akpm/master'
Diffstat (limited to 'include/linux/batch_complete.h')
-rw-r--r--include/linux/batch_complete.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/batch_complete.h b/include/linux/batch_complete.h
new file mode 100644
index 000000000000..8167a9d306fb
--- /dev/null
+++ b/include/linux/batch_complete.h
@@ -0,0 +1,23 @@
+#ifndef _LINUX_BATCH_COMPLETE_H
+#define _LINUX_BATCH_COMPLETE_H
+
+#include <linux/rbtree.h>
+
+/*
+ * Common stuff to the aio and block code for batch completion. Everything
+ * important is elsewhere:
+ */
+
+struct bio;
+
+struct bio_list {
+ struct bio *head;
+ struct bio *tail;
+};
+
+struct batch_complete {
+ struct bio_list bio;
+ struct rb_root kiocb;
+};
+
+#endif