]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-discard-granularity.m4
Revert "Reduce dbuf_find() lock contention"
[mirror_zfs.git] / config / kernel-discard-granularity.m4
1 dnl #
2 dnl # 2.6.33 API change
3 dnl # Discard granularity and alignment restrictions may now be set.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_DISCARD_GRANULARITY], [
6 ZFS_LINUX_TEST_SRC([discard_granularity], [
7 #include <linux/blkdev.h>
8 ],[
9 struct queue_limits ql __attribute__ ((unused));
10 ql.discard_granularity = 0;
11 ])
12 ])
13
14 AC_DEFUN([ZFS_AC_KERNEL_DISCARD_GRANULARITY], [
15 AC_MSG_CHECKING([whether ql->discard_granularity is available])
16 ZFS_LINUX_TEST_RESULT([discard_granularity], [
17 AC_MSG_RESULT(yes)
18 ],[
19 ZFS_LINUX_TEST_ERROR([ql->discard_granularity])
20 ])
21 ])