]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-bdi-setup-and-register.m4
Update SAs when an inode is dirtied
[mirror_zfs-debian.git] / config / kernel-bdi-setup-and-register.m4
CommitLineData
5547c2f1
BB
1dnl #
2dnl # 2.6.34 API change
3dnl # The bdi_setup_and_register() helper function is avilable and
4dnl # exported by the kernel. This is a trivial helper function but
5dnl # using it significantly simplifies the code surrounding setting
6dnl # up and tearing down the bdi structure.
7dnl #
70574182
ED
8AC_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>
12 ], [
13 bdi_setup_and_register(NULL, NULL, 0);
14 ], [bdi_setup_and_register], [mm/backing-dev.c], [
15 AC_MSG_RESULT(yes)
16 AC_DEFINE(HAVE_BDI_SETUP_AND_REGISTER, 1,
17 [bdi_setup_and_register() is available])
18 ], [
19 AC_MSG_RESULT(no)
20 ])
5547c2f1 21])