1 AC_DEFUN([ZFS_AC_KERNEL_SRC_WRITEPAGE_T], [
4 dnl # The writepage_t function type now has its first argument as
5 dnl # struct folio* instead of struct page*
7 ZFS_LINUX_TEST_SRC([writepage_t_folio], [
8 #include <linux/writeback.h>
9 static int putpage(struct folio *folio,
10 struct writeback_control *wbc, void *data)
12 writepage_t func = putpage;
16 AC_DEFUN([ZFS_AC_KERNEL_WRITEPAGE_T], [
17 AC_MSG_CHECKING([whether int (*writepage_t)() takes struct folio*])
18 ZFS_LINUX_TEST_RESULT([writepage_t_folio], [
20 AC_DEFINE(HAVE_WRITEPAGE_T_FOLIO, 1,
21 [int (*writepage_t)() takes struct folio*])