diff --git a/src/flashcache_subr.c b/src/flashcache_subr.c index b2e2159..50be2c1 100644 --- a/src/flashcache_subr.c +++ b/src/flashcache_subr.c @@ -738,9 +738,12 @@ flashcache_bio_endio(struct bio *bio, int error, bio_endio(bio, bio->bi_size, error); #elif LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0) bio_endio(bio, error); -#else +#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,13,0) bio->bi_error = error; bio_endio(bio); +#else + bio->bi_status = error; + bio_endio(bio); #endif }