3 dnl # revalidate_disk_size() has been removed entirely.
6 dnl # revalidate_disk() was replaced by revalidate_disk_size()
8 AC_DEFUN([ZFS_AC_KERNEL_SRC_REVALIDATE_DISK], [
10 ZFS_LINUX_TEST_SRC([revalidate_disk_size], [
11 #include <linux/blkdev.h>
13 struct gendisk *disk = NULL;
14 (void) revalidate_disk_size(disk, false);
17 ZFS_LINUX_TEST_SRC([revalidate_disk], [
18 #include <linux/blkdev.h>
20 struct gendisk *disk = NULL;
21 (void) revalidate_disk(disk);
25 AC_DEFUN([ZFS_AC_KERNEL_REVALIDATE_DISK], [
27 AC_MSG_CHECKING([whether revalidate_disk_size() is available])
28 ZFS_LINUX_TEST_RESULT_SYMBOL([revalidate_disk_size],
29 [revalidate_disk_size], [block/genhd.c], [
31 AC_DEFINE(HAVE_REVALIDATE_DISK_SIZE, 1,
32 [revalidate_disk_size() is available])
36 AC_MSG_CHECKING([whether revalidate_disk() is available])
37 ZFS_LINUX_TEST_RESULT_SYMBOL([revalidate_disk],
38 [revalidate_disk], [block/genhd.c], [
40 AC_DEFINE(HAVE_REVALIDATE_DISK, 1,
41 [revalidate_disk() is available])