-# LC_HAVE_BI_CNT
-#
-# 4.4 redefined bi_cnt as __bi_cnt
-#
-AC_DEFUN([LC_HAVE_BI_CNT], [
-LB_CHECK_COMPILE([if Linux kernel has bi_cnt in struct bio],
-have_bi_cnt, [
- #include <asm/atomic.h>
- #include <linux/bio.h>
-],[
- struct bio bio = { };
- int cnt;
- cnt = atomic_read(&bio.bi_cnt);
-], [
- AC_DEFINE(HAVE_BI_CNT, 1,
- [struct bio has bi_cnt])
-])
-]) # LC_HAVE_BI_CNT
-
-#
-# LC_HAVE_BI_RW
-#
-# 4.4 redefined bi_rw as bi_opf
-#
-AC_DEFUN([LC_HAVE_BI_RW], [
-LB_CHECK_COMPILE([if Linux kernel has bi_rw in struct bio],
-have_bi_rw, [
- #include <linux/bio.h>
-],[
- struct bio bio;
-
- bio.bi_rw = 0;
-], [
- AC_DEFINE(HAVE_BI_RW, 1,
- [struct bio has bi_rw])
-])
-]) # LC_HAVE_BI_RW
-
-#
-# LC_HAVE_SUBMIT_BIO_2ARGS
-#
-# 4.4 removed an argument from submit_bio
-#
-AC_DEFUN([LC_HAVE_SUBMIT_BIO_2ARGS], [
-LB_CHECK_COMPILE([if submit_bio takes two arguments],
-have_submit_bio_2args, [
- #include <linux/bio.h>
-],[
- struct bio bio;
- submit_bio(READ, &bio);
-], [
- AC_DEFINE(HAVE_SUBMIT_BIO_2ARGS, 1,
- [submit_bio takes two arguments])
-])
-]) # LC_HAVE_SUBMIT_BIO_2_ARGS
-
-#
-# LC_HAVE_CLEAN_BDEV_ALIASES
-#
-# 4.4 unmap_underlying_metadata was replaced by clean_bdev_aliases
-#
-AC_DEFUN([LC_HAVE_CLEAN_BDEV_ALIASES], [
-LB_CHECK_COMPILE([if kernel has clean_bdev_aliases],
-have_clean_bdev_aliases, [
- #include <linux/buffer_head.h>
-],[
- struct block_device bdev;
- clean_bdev_aliases(&bdev,1,1);
-], [
- AC_DEFINE(HAVE_CLEAN_BDEV_ALIASES, 1,
- [kernel has clean_bdev_aliases])
-])
-]) # LC_HAVE_CLEAN_BDEV_ALIASES
-
-#