mirror_zfs/include/os/linux/kernel/linux
Rob Norris 0cf14bf4b5 Linux 6.12: PG_error flag was removed
torvalds/linux@09022bc196 removes the flag, and the corresponding
SetPageError() and ClearPageError() macros, with no replacement offered.

Going back through the upstream history, use of this flag has been
gradually removed over the last year as part of the long tail of
converting everything to folios. Interesting tidbit comments from
torvalds/linux@29e9412b25 and torvalds/linux@420e05d0de suggest that
this flag has not been used meaningfully since page writeback failures
started being recorded in errseq_t instead (the whole "fsyncgate" thing,
~2017, around torvalds/linux@8ed1e46aaf).

Given that, it's possible that since perhaps Linux 4.13 we haven't been
getting anything by setting the flag. I don't know if that's true and/or
if there's something we should be doing instead, but my gut feel is that
its probably fine we only use the page cache as a proxy to allow mmap()
to work, rather than backing IO with it.

As such, I'm expecting that removing this will do no harm, but I'm
leaving it in for older kernels to maintain status quo, and if there is
an overall better way, that is left for a future change.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16582
2024-10-01 13:54:05 -07:00
..
blkdev_compat.h config: remove HAVE_MODE_LOOKUP_BDEV 2024-09-18 11:23:51 -07:00
compiler_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
dcache_compat.h config: remove HAVE_D_MAKE_ROOT 2024-09-18 11:23:49 -07:00
kmap_compat.h config: remove HAVE_GET_USER_PAGES_* 2024-09-18 11:23:51 -07:00
mm_compat.h Linux 6.12: PG_error flag was removed 2024-10-01 13:54:05 -07:00
mod_compat.h vdev_disk: rewrite BIO filling machinery to avoid split pages 2024-03-25 16:51:14 -07:00
page_compat.h config: remove ZFS_GLOBAL_ZONE_PAGE_STATE and ZFS_ENUM_* generation 2024-09-18 11:23:50 -07:00
simd_aarch64.h linux: remove kernel version checks for unsupported kernels 2024-09-19 15:43:44 -07:00
simd_arm.h Linux 6.2 compat: add check for kernel_neon_* availability 2024-01-08 16:05:24 -08:00
simd_powerpc.h linux: remove kernel version checks for unsupported kernels 2024-09-19 15:43:44 -07:00
simd_x86.h Avoid save/restoring AMX registers to avoid a SPR erratum 2023-08-26 11:25:46 -07:00
simd.h Add SIMD metadata in /proc on Linux 2024-09-20 08:16:44 -07:00
utsname_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
vfs_compat.h Linux 6.12: f_version removed from struct file 2024-10-01 13:54:00 -07:00
xattr_compat.h config: remove HAVE_XATTR_GET_DENTRY_INODE 2024-09-18 11:23:50 -07:00