Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Fix build error on Linux 4.3. #213

Merged
merged 1 commit into from
Aug 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/flashcache_subr.c
Original file line number Diff line number Diff line change
@@ -736,8 +736,11 @@ flashcache_bio_endio(struct bio *bio, int error,
flashcache_record_latency(dmc, start_time);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
bio_endio(bio, bio->bi_size, error);
#else
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
bio_endio(bio, error);
#else
bio->bi_error = error;
bio_endio(bio);
#endif
}