]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-discard-granularity.m4
FreeBSD: Add zfs_link_create() error handling
[mirror_zfs.git] / config / kernel-discard-granularity.m4
CommitLineData
ee5fd0bb
ED
1dnl #
2dnl # 2.6.33 API change
3dnl # Discard granularity and alignment restrictions may now be set.
4dnl #
608f8749
BB
5AC_DEFUN([ZFS_AC_KERNEL_SRC_DISCARD_GRANULARITY], [
6 ZFS_LINUX_TEST_SRC([discard_granularity], [
ee5fd0bb
ED
7 #include <linux/blkdev.h>
8 ],[
9 struct queue_limits ql __attribute__ ((unused));
ee5fd0bb 10 ql.discard_granularity = 0;
608f8749
BB
11 ])
12])
13
14AC_DEFUN([ZFS_AC_KERNEL_DISCARD_GRANULARITY], [
15 AC_MSG_CHECKING([whether ql->discard_granularity is available])
16 ZFS_LINUX_TEST_RESULT([discard_granularity], [
ee5fd0bb 17 AC_MSG_RESULT(yes)
ee5fd0bb 18 ],[
066e8252 19 ZFS_LINUX_TEST_ERROR([ql->discard_granularity])
ee5fd0bb
ED
20 ])
21])