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, May 18, 10:15 PM
Unknown Object (File)
Dec 26 2023, 12:16 AM
Unknown Object (File)
Dec 13 2023, 7:28 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