]> git.proxmox.com Git - mirror_zfs-debian.git/blob - config/kernel-bdi.m4
Move partition scanning from userspace to module.
[mirror_zfs-debian.git] / config / kernel-bdi.m4
1 dnl #
2 dnl # 2.6.32 API change
3 dnl # Private backing_device_info interfaces available
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_BDI], [
6 AC_MSG_CHECKING([whether super_block has s_bdi])
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/fs.h>
9 ],[
10 struct super_block sb __attribute__ ((unused));
11 sb.s_bdi = NULL;
12 ],[
13 AC_MSG_RESULT(yes)
14 AC_DEFINE(HAVE_BDI, 1, [struct super_block has s_bdi])
15 ],[
16 AC_MSG_RESULT(no)
17 ])
18 ])