ztest: update ztest_dmu_snapshot_create_destroy()
[zfs.git] / config / kernel-discard-granularity.m4
blob61326e67732b13966b807662418f810b21b67dbc
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         ])
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         ])