Page MenuHomeFreeBSD

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

Authored by dumbbell on Dec 13 2023, 11:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 13, 10:08 AM
Unknown Object (File)
Jul 19 2025, 6:20 AM
Unknown Object (File)
Jul 19 2025, 5:10 AM
Unknown Object (File)
Jul 19 2025, 4:42 AM
Unknown Object (File)
Jul 4 2025, 10:55 PM
Unknown Object (File)
Jun 24 2025, 2:45 AM
Unknown Object (File)
Jun 22 2025, 12:35 PM
Unknown Object (File)
Jun 21 2025, 5:58 PM

Details

Summary

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.

This is part of the update of the DRM drivers to Linux 5.18.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped