]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-blk-queue-max-hw-sectors.m4
Allow platform dependent path stripping for vdevs
[mirror_zfs.git] / config / kernel-blk-queue-max-hw-sectors.m4
1 dnl #
2 dnl # 2.6.34 API change
3 dnl # blk_queue_max_hw_sectors() replaces blk_queue_max_sectors().
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_BLK_QUEUE_MAX_HW_SECTORS], [
6 ZFS_LINUX_TEST_SRC([blk_queue_max_hw_sectors], [
7 #include <linux/blkdev.h>
8 ], [
9 struct request_queue *q = NULL;
10 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
11 ], [$NO_UNUSED_BUT_SET_VARIABLE])
12 ])
13
14 AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_MAX_HW_SECTORS], [
15 AC_MSG_CHECKING([whether blk_queue_max_hw_sectors() is available])
16 ZFS_LINUX_TEST_RESULT([blk_queue_max_hw_sectors], [
17 AC_MSG_RESULT(yes)
18 AC_DEFINE(HAVE_BLK_QUEUE_MAX_HW_SECTORS, 1,
19 [blk_queue_max_hw_sectors() is available])
20 ],[
21 AC_MSG_RESULT(no)
22 ])
23 ])