mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-06 15:23:20 +03:00
![Coleman Kane](/assets/img/avatar_default.png)
Many of the block device operations (often functions with bdev in
the name) were moved into linux/blkdev.h from linux/fs.h. Seems
that this header is already included where needed in the code, but
in the autoconf tests it was missing causing false negatives. This
commit has those tests include linux/fs.h (old location) and now
also linux/blkdev.h (new locations).
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #10696
(cherry picked from commit 1823c8fe6a
)
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
25 lines
603 B
Plaintext
25 lines
603 B
Plaintext
dnl #
|
|
dnl # 2.6.22 API change
|
|
dnl # Unused destroy_dirty_buffers arg removed from prototype.
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_INVALIDATE_BDEV], [
|
|
ZFS_LINUX_TEST_SRC([invalidate_bdev], [
|
|
#include <linux/buffer_head.h>
|
|
#include <linux/blkdev.h>
|
|
],[
|
|
struct block_device *bdev = NULL;
|
|
invalidate_bdev(bdev);
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_INVALIDATE_BDEV], [
|
|
AC_MSG_CHECKING([whether invalidate_bdev() wants 1 arg])
|
|
ZFS_LINUX_TEST_RESULT([invalidate_bdev], [
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_1ARG_INVALIDATE_BDEV, 1,
|
|
[invalidate_bdev() wants 1 arg])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|