3 dnl # torvalds/linux@17cf28afea2a1112f240a3a2da8af883be024811 removed
4 dnl # truncate_range(). The file hole punching functionality is now
5 dnl # provided by fallocate()
7 AC_DEFUN([ZFS_AC_KERNEL_SRC_TRUNCATE_RANGE], [
8 ZFS_LINUX_TEST_SRC([inode_operations_truncate_range], [
10 void truncate_range(struct inode *inode, loff_t start,
11 loff_t end) { return; }
12 static struct inode_operations iops __attribute__ ((unused)) = {
13 .truncate_range = truncate_range,
18 AC_DEFUN([ZFS_AC_KERNEL_TRUNCATE_RANGE], [
19 AC_MSG_CHECKING([whether iops->truncate_range() exists])
20 ZFS_LINUX_TEST_RESULT([inode_operations_truncate_range], [
22 AC_DEFINE(HAVE_INODE_TRUNCATE_RANGE, 1,
23 [iops->truncate_range() exists])