]> granicus.if.org Git - zfs/blob - config/kernel-bio-bvec-iter.m4
Fix for ARC sysctls ignored at runtime
[zfs] / config / kernel-bio-bvec-iter.m4
1 dnl #
2 dnl # 3.14 API change,
3 dnl # Immutable biovecs. A number of fields of struct bio are moved to
4 dnl # struct bvec_iter.
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_SRC_BIO_BVEC_ITER], [
7         ZFS_LINUX_TEST_SRC([bio_bvec_iter], [
8                 #include <linux/bio.h>
9         ],[
10                 struct bio bio;
11                 bio.bi_iter.bi_sector = 0;
12         ])
13 ])
14
15 AC_DEFUN([ZFS_AC_KERNEL_BIO_BVEC_ITER], [
16         AC_MSG_CHECKING([whether bio has bi_iter])
17         ZFS_LINUX_TEST_RESULT([bio_bvec_iter], [
18                 AC_MSG_RESULT(yes)
19                 AC_DEFINE(HAVE_BIO_BVEC_ITER, 1, [bio has bi_iter])
20         ],[
21                 AC_MSG_RESULT(no)
22         ])
23 ])