]>
Commit | Line | Data |
---|---|---|
8ce2eba9 | 1 | AC_DEFUN([ZFS_AC_KERNEL_SRC_COPY_SPLICE_READ], [ |
36261c82 CK |
2 | dnl # |
3 | dnl # Kernel 6.5 - generic_file_splice_read was removed in favor | |
8ce2eba9 | 4 | dnl # of copy_splice_read for the .splice_read member of the |
36261c82 CK |
5 | dnl # file_operations struct. |
6 | dnl # | |
8ce2eba9 | 7 | ZFS_LINUX_TEST_SRC([has_copy_splice_read], [ |
36261c82 CK |
8 | #include <linux/fs.h> |
9 | ||
10 | struct file_operations fops __attribute__((unused)) = { | |
8ce2eba9 | 11 | .splice_read = copy_splice_read, |
36261c82 CK |
12 | }; |
13 | ],[]) | |
14 | ]) | |
15 | ||
8ce2eba9 CK |
16 | AC_DEFUN([ZFS_AC_KERNEL_COPY_SPLICE_READ], [ |
17 | AC_MSG_CHECKING([whether copy_splice_read() exists]) | |
18 | ZFS_LINUX_TEST_RESULT([has_copy_splice_read], [ | |
36261c82 | 19 | AC_MSG_RESULT(yes) |
8ce2eba9 CK |
20 | AC_DEFINE(HAVE_COPY_SPLICE_READ, 1, |
21 | [copy_splice_read exists]) | |
36261c82 CK |
22 | ],[ |
23 | AC_MSG_RESULT(no) | |
24 | ]) | |
25 | ]) |