]>
Commit | Line | Data |
---|---|---|
5547c2f1 BB |
1 | dnl # |
2 | dnl # 2.6.34 API change | |
3 | dnl # The bdi_setup_and_register() helper function is avilable and | |
4 | dnl # exported by the kernel. This is a trivial helper function but | |
5 | dnl # using it significantly simplifies the code surrounding setting | |
6 | dnl # up and tearing down the bdi structure. | |
7 | dnl # | |
70574182 ED |
8 | AC_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 | ]) |