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_TRUNCATE_RANGE], [
8 AC_MSG_CHECKING([whether iops->truncate_range() exists])
9 ZFS_LINUX_TRY_COMPILE([
11 void truncate_range(struct inode *inode, loff_t start,
12 loff_t end) { return; }
13 static struct inode_operations iops __attribute__ ((unused)) = {
14 .truncate_range = truncate_range,
19 AC_DEFINE(HAVE_INODE_TRUNCATE_RANGE, 1,
20 [iops->truncate_range() exists])