From cf8ee664906cd5867a0559aa32717409b6ff3cef Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 19 Aug 2015 12:35:19 +0200 Subject: [PATCH] bio: adapt to missing BIO_EOPNOTSUPP (kernel 4.2) --- kernel/mars_bio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/mars_bio.c b/kernel/mars_bio.c index 4de45314..bee17789 100644 --- a/kernel/mars_bio.c +++ b/kernel/mars_bio.c @@ -448,8 +448,10 @@ void _bio_ref_io(struct bio_output *output, struct mref_object *mref, bool cork) threshold_check(&bio_submit_threshold, latency); status = 0; +#ifdef BIO_EOPNOTSUPP /* missing since b25de9d6da49b1a8760a89672283128aa8c78345 */ if (unlikely(bio_flagged(bio, BIO_EOPNOTSUPP))) status = -EOPNOTSUPP; +#endif MARS_IO("submitted\n");