]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-bdi.m4
Imported Upstream version 0.6.2+git20140204
[mirror_zfs-debian.git] / config / kernel-bdi.m4
CommitLineData
76659dc1
BB
1dnl #
2dnl # 2.6.32 API change
3dnl # Private backing_device_info interfaces available
4dnl #
5AC_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>
a08ee875
LG
9
10 static const struct super_block
11 sb __attribute__ ((unused)) = {
12 .s_bdi = NULL,
13 };
76659dc1 14 ],[
76659dc1
BB
15 ],[
16 AC_MSG_RESULT(yes)
17 AC_DEFINE(HAVE_BDI, 1, [struct super_block has s_bdi])
18 ],[
19 AC_MSG_RESULT(no)
20 ])
21])