2 dnl # 2.6.33 API change
3 dnl # Discard granularity and alignment restrictions may now be set.
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_DISCARD_GRANULARITY], [
6 ZFS_LINUX_TEST_SRC([discard_granularity], [
7 #include <linux/blkdev.h>
9 struct queue_limits ql __attribute__ ((unused));
10 ql.discard_granularity = 0;
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], [
19 ZFS_LINUX_TEST_ERROR([ql->discard_granularity])