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>
#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)
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);