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
F144728024: D43018.diff
Wed, Feb 11, 6:47 PM
Unknown Object (File)
Tue, Feb 10, 3:56 PM
Unknown Object (File)
Sun, Feb 8, 1:23 AM
Unknown Object (File)
Sat, Feb 7, 5:20 PM
Unknown Object (File)
Sat, Jan 31, 3:16 PM
Unknown Object (File)
Fri, Jan 30, 5:08 PM
Unknown Object (File)
Dec 9 2025, 4:48 AM
Unknown Object (File)
Dec 2 2025, 7:29 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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable