summaryrefslogtreecommitdiff
path: root/include/linux/batch_complete.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2013-02-07 17:04:23 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-02-07 17:04:23 +1100
commit89fa7d4989785694ba720133c0fd3d7485cd059a (patch)
treeef062d89ed62defaed0856e9e0dff6e130b54aff /include/linux/batch_complete.h
parente61c0ad53a8281dca1f392a7654e9b1f2210cb91 (diff)
parentf66cce24892aa254a556516339c8307a1a6fd165 (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