]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-evict-inode.m4
Add dpkg-dev to Depends of zfs-dkms (Closes: #900714)
[mirror_zfs-debian.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 #
6AC_DEFUN([ZFS_AC_KERNEL_EVICT_INODE], [
7 AC_MSG_CHECKING([whether sops->evict_inode() exists])
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/fs.h>
0a6b03d3
RY
10 void evict_inode (struct inode * t) { return; }
11 static struct super_operations sops __attribute__ ((unused)) = {
ddd052aa
BB
12 .evict_inode = evict_inode,
13 };
0a6b03d3 14 ],[
2c395def
BB
15 ],[
16 AC_MSG_RESULT(yes)
17 AC_DEFINE(HAVE_EVICT_INODE, 1, [sops->evict_inode() exists])
18 ],[
19 AC_MSG_RESULT(no)
20 ])
21])