summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2013-02-07 12:32:15 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-02-14 15:33:46 +1100
commit957e2c83d6b3ee04682f0a1b0c7a8cb9ce7aa9c9 (patch)
treeef7eeb222a265f9b204f280d75d6f610c354c407 /include
parent2598622d33d9dafaf2a60553c72f0868f241a8e4 (diff)
Fix build error due to bio_endio_batch
This patch fixes build error of recent mmotm. Signed-off-by: Minchan Kim <minchan@kernel.org> Cc: Kent Overstreet <koverstreet@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/bio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index ad62bdbdc866..5f549176745c 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -69,6 +69,8 @@
#define bio_segments(bio) ((bio)->bi_vcnt - (bio)->bi_idx)
#define bio_sectors(bio) ((bio)->bi_size >> 9)
+void bio_endio_batch(struct bio *bio, int error, struct batch_complete *batch);
+
static inline unsigned int bio_cur_bytes(struct bio *bio)
{
if (bio->bi_vcnt)
@@ -542,8 +544,6 @@ static inline struct bio *bio_list_get(struct bio_list *bl)
return bio;
}
-void bio_endio_batch(struct bio *bio, int error, struct batch_complete *batch);
-
static inline void batch_complete_init(struct batch_complete *batch)
{
bio_list_init(&batch->bio);