aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-blkdev-reread-part.m4
blob: 5664769a30918d67caf0c91ecaf21140aaedb376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dnl #
dnl # 4.1 API, exported blkdev_reread_part() symbol, backported to the
dnl # 3.10.0 CentOS 7.x enterprise kernels.
dnl #
AC_DEFUN([ZFS_AC_KERNEL_BLKDEV_REREAD_PART], [
	AC_MSG_CHECKING([whether blkdev_reread_part() is available])
	ZFS_LINUX_TRY_COMPILE([
		#include <linux/fs.h>
	], [
		struct block_device *bdev = NULL;
		int error;

		error = blkdev_reread_part(bdev);
	], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_BLKDEV_REREAD_PART, 1,
		    [blkdev_reread_part() is available])
	], [
		AC_MSG_RESULT(no)
	])
])