mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 10:49:34 +03:00
b9d98453f9
Make the wording more consistent for the kernel AC_MSG_CHECKING output (e.g. "checking whether ...".). Additionally, group some of the VFS interface checks with the others. No functional change. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Attila Fülöp <attila@fueloep.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #13529
33 lines
759 B
Plaintext
33 lines
759 B
Plaintext
dnl #
|
|
dnl # Linux 5.19 uses read_folio in lieu of readpage
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_READ_FOLIO], [
|
|
ZFS_LINUX_TEST_SRC([vfs_has_read_folio], [
|
|
#include <linux/fs.h>
|
|
|
|
static int
|
|
test_read_folio(struct file *file, struct folio *folio) {
|
|
(void) file; (void) folio;
|
|
return (0);
|
|
}
|
|
|
|
static const struct address_space_operations
|
|
aops __attribute__ ((unused)) = {
|
|
.read_folio = test_read_folio,
|
|
};
|
|
],[])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_VFS_READ_FOLIO], [
|
|
dnl #
|
|
dnl # Linux 5.19 uses read_folio in lieu of readpage
|
|
dnl #
|
|
AC_MSG_CHECKING([whether read_folio exists])
|
|
ZFS_LINUX_TEST_RESULT([vfs_has_read_folio], [
|
|
AC_MSG_RESULT([yes])
|
|
AC_DEFINE(HAVE_VFS_READ_FOLIO, 1, [read_folio exists])
|
|
],[
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
])
|