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 28, 3:01 AM
Unknown Object (File)
Fri, Aug 28, 3:00 AM
Unknown Object (File)
Wed, Aug 26, 7:09 PM
Unknown Object (File)
Wed, Aug 26, 7:03 PM
Unknown Object (File)
Wed, Aug 26, 9:07 AM
Unknown Object (File)
Wed, Aug 26, 9:03 AM
Unknown Object (File)
Mon, Aug 24, 8:56 AM
Unknown Object (File)
Mon, Aug 24, 3:02 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