mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
34 lines
943 B
Plaintext
34 lines
943 B
Plaintext
|
dnl #
|
||
|
dnl # 2.6.34 API change
|
||
|
dnl # current->bio_tail and current->bio_list were struct bio pointers prior to
|
||
|
dnl # Linux 2.6.34. They were refactored into a struct bio_list pointer called
|
||
|
dnl # current->bio_list in Linux 2.6.34.
|
||
|
dnl #
|
||
|
AC_DEFUN([ZFS_AC_KERNEL_CURRENT_BIO_TAIL], [
|
||
|
AC_MSG_CHECKING([whether current->bio_tail exists])
|
||
|
ZFS_LINUX_TRY_COMPILE([
|
||
|
#include <linux/sched.h>
|
||
|
],[
|
||
|
current->bio_tail = (struct bio **) NULL;
|
||
|
],[
|
||
|
AC_MSG_RESULT(yes)
|
||
|
AC_DEFINE(HAVE_CURRENT_BIO_TAIL, 1,
|
||
|
[current->bio_tail exists])
|
||
|
],[
|
||
|
AC_MSG_RESULT(no)
|
||
|
AC_MSG_CHECKING([whether current->bio_list exists])
|
||
|
ZFS_LINUX_TRY_COMPILE([
|
||
|
#include <linux/sched.h>
|
||
|
],[
|
||
|
current->bio_list = (struct bio_list *) NULL;
|
||
|
],[
|
||
|
AC_MSG_RESULT(yes)
|
||
|
AC_DEFINE(HAVE_CURRENT_BIO_LIST, 1,
|
||
|
[current->bio_list exists])
|
||
|
],[
|
||
|
AC_MSG_ERROR(no - Please file a bug report at
|
||
|
https://github.com/zfsonlinux/zfs/issues/new)
|
||
|
])
|
||
|
])
|
||
|
])
|