ZAP: Add by_dnode variants to lookup/prefetch_uint64
[zfs.git] / config / kernel-file.m4
blob31252544c745ccac17255561feb8746adcf06643
1 dnl #
2 dnl # 6.12 removed f_version from struct file
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_FILE_F_VERSION], [
5         ZFS_LINUX_TEST_SRC([file_f_version], [
6                 #include <linux/fs.h>
8                 static const struct f __attribute__((unused)) = {
9                         .f_version = 0;
10                 };
11         ])
14 AC_DEFUN([ZFS_AC_KERNEL_FILE_F_VERSION], [
15         AC_MSG_CHECKING([whether file->f_version exists])
16         ZFS_LINUX_TEST_RESULT([file_f_version], [
17                 AC_MSG_RESULT(yes)
18                 AC_DEFINE(HAVE_FILE_F_VERSION, 1,
19                     [file->f_version exists])
20         ], [
21                 AC_MSG_RESULT(no)
22         ])
25 AC_DEFUN([ZFS_AC_KERNEL_FILE], [
26         ZFS_AC_KERNEL_FILE_F_VERSION
29 AC_DEFUN([ZFS_AC_KERNEL_SRC_FILE], [
30         ZFS_AC_KERNEL_SRC_FILE_F_VERSION