]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-bdi-setup-and-register.m4
Linux 3.1 compat, fops->fsync()
[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 #
8AC_DEFUN([ZFS_AC_KERNEL_BDI_SETUP_AND_REGISTER], [
9 ZFS_CHECK_SYMBOL_EXPORT(
10 [bdi_setup_and_register],
11 [mm/backing-dev.c],
12 [AC_DEFINE(HAVE_BDI_SETUP_AND_REGISTER, 1,
13 [bdi_setup_and_register() is available])],
14 [])
15])