]>
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 # | |
8 | AC_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 | ]) |