aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-bdi.m4
blob: 34ffaabd5b5a703b6c119b349ea6bcb1fce753d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl #
dnl # 2.6.32 API change
dnl # Private backing_device_info interfaces available
dnl #
AC_DEFUN([ZFS_AC_KERNEL_BDI], [
	AC_MSG_CHECKING([whether super_block has s_bdi])
	ZFS_LINUX_TRY_COMPILE([
		#include <linux/fs.h>
	],[
		struct super_block sb __attribute__ ((unused));
		sb.s_bdi = NULL;
	],[
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_BDI, 1, [struct super_block has s_bdi])
	],[
		AC_MSG_RESULT(no)
	])
])