Page MenuHomeFreeBSD

LinuxKPI: move clear_page() within the linux/page.h file
ClosedPublic

Authored by bz on Jul 17 2026, 12:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 21, 10:47 PM
Unknown Object (File)
Wed, Aug 19, 2:40 AM
Unknown Object (File)
Fri, Aug 14, 3:38 AM
Unknown Object (File)
Tue, Aug 11, 8:03 PM
Unknown Object (File)
Tue, Aug 11, 9:53 AM
Unknown Object (File)
Tue, Aug 11, 1:14 AM
Unknown Object (File)
Sun, Aug 9, 12:23 PM
Unknown Object (File)
Sun, Aug 9, 9:32 AM
Subscribers

Details

Summary

clear_page() would normally live in asm/page.h but adding the file
and fixing the dependencies would be too much for a single line.

Move the function to the end of the file with a clear separator
and make it clear that it does not operate on a 'struct page'
but on a page address by changing the argument name and leaving
a comment.

The function is currently used by at least mthca(4) as the only
in-tree consumer, and drm-kmod ttm_pool.c.

No functional changes.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Test Plan

This is prpeparation for the PAGE_IS_LKPI_PAGE work
( I am trying to get the noise out of the diff )

Diff Detail

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