From ca286d06c5bdd1fe181cdc672c5d72ec8e7bee1c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 7 Feb 2013 12:32:15 +1100 Subject: block-aio-batch-completion-for-bios-kiocbs-fix-fix-fix-fix Fix broken build when CONFIG_BLOCK=n by pulling common stuff out into a new header. Signed-off-by: Kent Overstreet Signed-off-by: Andrew Morton --- include/linux/batch_complete.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/linux/batch_complete.h (limited to 'include/linux/batch_complete.h') 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 + +/* + * 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 -- cgit v1.2.3