HomeFreeBSD

linuxkpi: Move `invalidate_mapping_pages()` to <linux/pagemap.h>

Description

linuxkpi: Move invalidate_mapping_pages() to <linux/pagemap.h>

[Why]
This is consistent with Linux.

[How]
The definition is moved from <linux/shmem_fs.h> to <linux/pagemap.h> and
the latter is included from the former. This is how it is done on Linux.

Prototypes are also expanded with argument names. I got a build failure
in the DRM 5.18 drivers because the compiler considered that the
pgoff_t argument was there twice.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D43018

(cherry picked from commit 4e0d3f7b3c3295e51ded2bab39f36842f405b4eb)

Details

Provenance
dumbbellAuthored on Dec 8 2023, 5:07 PM
wulfCommitted on Feb 17 2024, 8:58 PM
Reviewer
manu
Differential Revision
D43018: linuxkpi: Move `invalidate_mapping_pages()` to <linux/pagemap.h>
Parents
rG586c0e9676cf: linuxkpi: Include <linux/types.h> from <linux/cc_platform.h>
Branches
Unknown
Tags
Unknown