mirror_zfs/module/os/linux/zfs
Rob Norris 01e06ed89d 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-11-15 10:15:01 -08:00
..
abd_os.c abd_os: split userspace and Linux kernel code 2024-11-15 10:15:00 -08:00
arc_os.c arc_os: split userspace and Linux kernel code 2024-11-15 10:15:00 -08:00
mmp_os.c Cleanup: 64-bit kernel module parameters should use fixed width types 2022-10-13 10:03:29 -07:00
policy.c config: remove HAVE_HAS_CAPABILITY 2024-11-15 10:15:00 -08:00
qat_compress.c Intel QAT 1.7 compatibility 2023-09-07 16:10:52 -07:00
qat_crypt.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
qat.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
spa_misc_os.c Cleanup: 64-bit kernel module parameters should use fixed width types 2022-10-13 10:03:29 -07:00
trace.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
vdev_disk.c config: remove HAVE_BIO_SET_DEV 2024-11-15 10:15:00 -08:00
vdev_file.c zfs_file: rename zfs_file_fallocate to zfs_file_deallocate 2024-11-15 10:15:00 -08:00
zfs_acl.c Fix an uninitialized data access (#16511) 2024-11-05 15:43:52 -08:00
zfs_ctldir.c config: remove HAVE_FILEMAP_RANGE_HAS_PAGE 2024-11-15 10:14:59 -08:00
zfs_debug.c zfs_debug: specific variant for userspace 2024-11-15 10:15:01 -08:00
zfs_dir.c Linux 6.3 compat: idmapped mount API changes 2023-04-10 14:15:36 -07:00
zfs_file_os.c zfs_file: rename zfs_file_fallocate to zfs_file_deallocate 2024-11-15 10:15:00 -08:00
zfs_ioctl_os.c Linux 6.3 compat: idmapped mount API changes 2023-04-10 14:15:36 -07:00
zfs_racct.c module: zfs: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
zfs_sysfs.c [2.2.5-only] Make 'rmmod zfs' work after zfs-2.2.4 (#16406) 2024-08-02 18:03:09 -07:00
zfs_uio.c config: remove HAVE_BLK_MQ 2024-11-15 10:15:00 -08:00
zfs_vfsops.c config: remove HAVE_SUPER_SETUP_BDI_NAME 2024-11-15 10:15:00 -08:00
zfs_vnops_os.c config: remove HAVE_TMPFILE 2024-11-15 10:15:00 -08:00
zfs_znode_os.c Linux 6.12: PG_error flag was removed 2024-11-15 10:15:01 -08:00
zio_crypt.c ZIL: Assert record sizes in different places 2024-01-08 16:11:39 -08:00
zpl_ctldir.c config: remove HAVE_VFS_ITERATE/HAVE_VFS_ITERATE_SHARED 2024-11-15 10:14:59 -08:00
zpl_export.c config: remove HAVE_ENCODE_FH_WITH_INODE 2024-11-15 10:14:57 -08:00
zpl_file_range.c config: remove HAVE_VFS_COPY_FILE_RANGE 2024-11-15 10:14:59 -08:00
zpl_file.c config: remove HAVE_FILEMAP_RANGE_HAS_PAGE 2024-11-15 10:14:59 -08:00
zpl_inode.c config: remove HAVE_GENERIC_READLINK 2024-11-15 10:15:00 -08:00
zpl_super.c config: remove HAVE_INODE_SET_IVERSION 2024-11-15 10:14:59 -08:00
zpl_xattr.c config: remove HAVE_XATTR_LIST_SIMPLE 2024-11-15 10:14:59 -08:00
zvol_os.c config: rework ZFS_GENHD_FL_* 2024-11-15 10:15:00 -08:00