ZAP: Reduce leaf array and free chunks fragmentation
[zfs.git] / config / kernel-get-disk-ro.m4
blobacfcb69acc10732e7aac91ef389f16e5c1302ccd
1 dnl #
2 dnl # 2.6.x API change
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_GET_DISK_RO], [
5         ZFS_LINUX_TEST_SRC([get_disk_ro], [
6                 #include <linux/blkdev.h>
7         ],[
8                 struct gendisk *disk __attribute__ ((unused)) = NULL;
9                 (void) get_disk_ro(disk);
10         ], [])
13 AC_DEFUN([ZFS_AC_KERNEL_GET_DISK_RO], [
14         AC_MSG_CHECKING([whether get_disk_ro() is available])
15         ZFS_LINUX_TEST_RESULT([get_disk_ro], [
16                 AC_MSG_RESULT(yes)
17         ],[
18                 ZFS_LINUX_TEST_ERROR([get_disk_ro()])
19         ])