]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-open-bdev-exclusive.m4
kernel_fpu fixes
[mirror_zfs.git] / config / kernel-open-bdev-exclusive.m4
CommitLineData
c9c0d073
BB
1dnl #
2dnl # 2.6.28 API change
3dnl # open/close_bdev_excl() renamed to open/close_bdev_exclusive()
4dnl #
70574182
ED
5AC_DEFUN([ZFS_AC_KERNEL_OPEN_BDEV_EXCLUSIVE],
6 [AC_MSG_CHECKING([whether open_bdev_exclusive() is available])
7 ZFS_LINUX_TRY_COMPILE_SYMBOL([
8 #include <linux/fs.h>
9 ], [
10 open_bdev_exclusive(NULL, 0, NULL);
11 ], [open_bdev_exclusive], [fs/block_dev.c], [
12 AC_MSG_RESULT(yes)
13 AC_DEFINE(HAVE_OPEN_BDEV_EXCLUSIVE, 1,
14 [open_bdev_exclusive() is available])
15 ], [
16 AC_MSG_RESULT(no)
17 ])
c9c0d073 18])