2 dnl # 2.6.34 API change
3 dnl # The bdi_setup_and_register() helper function is avilable and
4 dnl # exported by the kernel. This is a trivial helper function but
5 dnl # using it significantly simplifies the code surrounding setting
6 dnl # up and tearing down the bdi structure.
8 AC_DEFUN([ZFS_AC_KERNEL_BDI_SETUP_AND_REGISTER],
9 [AC_MSG_CHECKING([whether bdi_setup_and_register() is available])
10 ZFS_LINUX_TRY_COMPILE_SYMBOL([
11 #include <linux/backing-dev.h>
13 bdi_setup_and_register(NULL, NULL, 0);
14 ], [bdi_setup_and_register], [mm/backing-dev.c], [
16 AC_DEFINE(HAVE_BDI_SETUP_AND_REGISTER, 1,
17 [bdi_setup_and_register() is available])