mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
config: remove HAVE_VFS_DIRECT_IO_ITER_RW_OFFSET
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
parent
c9e8d0e0b5
commit
a987057c67
@ -25,18 +25,6 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_DIRECT_IO], [
|
||||
.direct_IO = test_direct_IO,
|
||||
};
|
||||
],[])
|
||||
|
||||
ZFS_LINUX_TEST_SRC([direct_io_iter_rw_offset], [
|
||||
#include <linux/fs.h>
|
||||
|
||||
static ssize_t test_direct_IO(int rw, struct kiocb *kiocb,
|
||||
struct iov_iter *iter, loff_t offset) { return 0; }
|
||||
|
||||
static const struct address_space_operations
|
||||
aops __attribute__ ((unused)) = {
|
||||
.direct_IO = test_direct_IO,
|
||||
};
|
||||
],[])
|
||||
])
|
||||
|
||||
AC_DEFUN([ZFS_AC_KERNEL_VFS_DIRECT_IO], [
|
||||
@ -61,23 +49,9 @@ AC_DEFUN([ZFS_AC_KERNEL_VFS_DIRECT_IO], [
|
||||
AC_DEFINE(HAVE_VFS_DIRECT_IO_ITER_OFFSET, 1,
|
||||
[aops->direct_IO() uses iov_iter with offset])
|
||||
|
||||
],[
|
||||
AC_MSG_RESULT([no])
|
||||
|
||||
dnl #
|
||||
dnl # Linux 3.16.x API change
|
||||
dnl #
|
||||
AC_MSG_CHECKING(
|
||||
[whether aops->direct_IO() uses rw and offset])
|
||||
ZFS_LINUX_TEST_RESULT([direct_io_iter_rw_offset], [
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_DEFINE(HAVE_VFS_DIRECT_IO_ITER_RW_OFFSET, 1,
|
||||
[aops->direct_IO() uses iov_iter with ]
|
||||
[rw and offset])
|
||||
],[
|
||||
AC_MSG_RESULT([no])
|
||||
ZFS_LINUX_TEST_ERROR([Direct I/O])
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
@ -365,12 +365,6 @@ zpl_direct_IO(struct kiocb *kiocb, struct iov_iter *iter, loff_t pos)
|
||||
{
|
||||
return (zpl_direct_IO_impl());
|
||||
}
|
||||
#elif defined(HAVE_VFS_DIRECT_IO_ITER_RW_OFFSET)
|
||||
static ssize_t
|
||||
zpl_direct_IO(int rw, struct kiocb *kiocb, struct iov_iter *iter, loff_t pos)
|
||||
{
|
||||
return (zpl_direct_IO_impl());
|
||||
}
|
||||
#else
|
||||
#error "Unknown Direct I/O interface"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user