1# dnl 2# dnl 5.8 (735e4ae5ba28) introduced a superblock scoped errseq_t to use to 3# dnl record writeback errors for syncfs() to return. Up until 5.17, when 4# dnl sync_fs errors were returned directly, this is the only way for us to 5# dnl report an error from syncfs(). 6# dnl 7AC_DEFUN([ZFS_AC_KERNEL_SRC_SUPER_BLOCK_S_WB_ERR], [ 8 ZFS_LINUX_TEST_SRC([super_block_s_wb_err], [ 9 #include <linux/fs.h> 10 11 static const struct super_block 12 sb __attribute__ ((unused)) = { 13 .s_wb_err = 0, 14 }; 15 ],[]) 16]) 17 18AC_DEFUN([ZFS_AC_KERNEL_SUPER_BLOCK_S_WB_ERR], [ 19 AC_MSG_CHECKING([whether super_block has s_wb_err]) 20 ZFS_LINUX_TEST_RESULT([super_block_s_wb_err], [ 21 AC_MSG_RESULT(yes) 22 AC_DEFINE(HAVE_SUPER_BLOCK_S_WB_ERR, 1, 23 [have super_block s_wb_err]) 24 ],[ 25 AC_MSG_RESULT(no) 26 ]) 27]) 28