2 dnl # 2.6.33 API change
3 dnl # Discard granularity and alignment restrictions may now be set.
5 AC_DEFUN([ZFS_AC_KERNEL_DISCARD_GRANULARITY], [
6 AC_MSG_CHECKING([whether ql->discard_granularity is available])
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/blkdev.h>
10 struct queue_limits ql __attribute__ ((unused));
12 ql.discard_granularity = 0;
15 AC_DEFINE(HAVE_DISCARD_GRANULARITY, 1,
16 [ql->discard_granularity is available])