From 4101aa69de1d00b7e6cce49ae03f5491d9a549ef Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 28 Nov 2012 12:42:05 +0100 Subject: [PATCH] if: make it compile under openvz kernels --- mars_if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mars_if.c b/mars_if.c index e899d604..81a7e77d 100644 --- a/mars_if.c +++ b/mars_if.c @@ -31,6 +31,7 @@ #include #include +#include #include #include #include @@ -234,7 +235,7 @@ if_make_request(struct request_queue *q, struct bio *bio) */ const int rw = bio_data_dir(bio); const int sectors = bio_sectors(bio); -#ifdef BIO_RW_RQ_MASK +#if defined(BIO_RW_RQ_MASK) || defined(BIO_FLUSH) const bool ahead = bio_rw_flagged(bio, BIO_RW_AHEAD) && rw == READ; const bool barrier = bio_rw_flagged(bio, BIO_RW_BARRIER); const bool syncio = bio_rw_flagged(bio, BIO_RW_SYNCIO);