2 dnl # 5.12 API change removes BIO_MAX_PAGES in favor of bio_max_segs()
3 dnl # which will handle the logic of setting the upper-bound to a
4 dnl # BIO_MAX_PAGES, internally.
6 AC_DEFUN([ZFS_AC_KERNEL_SRC_BIO_MAX_SEGS], [
7 ZFS_LINUX_TEST_SRC([bio_max_segs], [
14 AC_DEFUN([ZFS_AC_KERNEL_BIO_MAX_SEGS], [
15 AC_MSG_CHECKING([whether bio_max_segs() exists])
16 ZFS_LINUX_TEST_RESULT([bio_max_segs], [
19 AC_DEFINE([HAVE_BIO_MAX_SEGS], 1, [bio_max_segs() is implemented])