]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-evict-inode.m4
Linux 6.5 compat: replace generic_file_splice_read with filemap_splice_read
[mirror_zfs.git] / config / kernel-evict-inode.m4
CommitLineData
2c395def
BB
1dnl #
2dnl # 2.6.36 API change
3dnl # The sops->delete_inode() and sops->clear_inode() callbacks have
4dnl # replaced by a single sops->evict_inode() callback.
5dnl #
608f8749
BB
6AC_DEFUN([ZFS_AC_KERNEL_SRC_EVICT_INODE], [
7 ZFS_LINUX_TEST_SRC([evict_inode], [
2c395def 8 #include <linux/fs.h>
0a6b03d3
RY
9 void evict_inode (struct inode * t) { return; }
10 static struct super_operations sops __attribute__ ((unused)) = {
ddd052aa
BB
11 .evict_inode = evict_inode,
12 };
608f8749
BB
13 ],[])
14])
15
16AC_DEFUN([ZFS_AC_KERNEL_EVICT_INODE], [
17 AC_MSG_CHECKING([whether sops->evict_inode() exists])
18 ZFS_LINUX_TEST_RESULT([evict_inode], [
2c395def
BB
19 AC_MSG_RESULT(yes)
20 AC_DEFINE(HAVE_EVICT_INODE, 1, [sops->evict_inode() exists])
21 ],[
066e8252 22 ZFS_LINUX_TEST_ERROR([evict_inode])
2c395def
BB
23 ])
24])