Page MenuHomeFreeBSD

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

Authored by bz on Fri, Jul 17, 12:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 3, 11:45 AM
Unknown Object (File)
Sat, Aug 1, 10:47 PM
Unknown Object (File)
Sat, Aug 1, 5:55 AM
Unknown Object (File)
Sat, Aug 1, 4:38 AM
Unknown Object (File)
Fri, Jul 31, 4:44 AM
Unknown Object (File)
Fri, Jul 31, 4:14 AM
Unknown Object (File)
Fri, Jul 31, 4:04 AM
Unknown Object (File)
Fri, Jul 31, 3:36 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 Passed
Unit
No Test Coverage
Build Status
Buildable 74870
Build 71753: arc lint + arc unit