]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-blk-queue-bdi.m4
Linux 4.14 compat: blk_queue_stackable()
[FreeBSD/FreeBSD.git] / config / kernel-blk-queue-bdi.m4
1 dnl #
2 dnl # 2.6.32 - 4.11, statically allocated bdi in request_queue
3 dnl # 4.12 - x.y, dynamically allocated bdi in request_queue
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_BDI], [
6         AC_MSG_CHECKING([whether blk_queue bdi is dynamic])
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/blkdev.h>
9         ],[
10                 struct request_queue q;
11                 struct backing_dev_info bdi;
12                 q.backing_dev_info = &bdi;
13         ],[
14                 AC_MSG_RESULT(yes)
15                 AC_DEFINE(HAVE_BLK_QUEUE_BDI_DYNAMIC, 1,
16                     [blk queue backing_dev_info is dynamic])
17         ],[
18                 AC_MSG_RESULT(no)
19         ])
20 ])