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
F164199405: D58296.diff
Wed, Jul 29, 2:14 PM
Unknown Object (File)
Tue, Jul 28, 11:25 AM
Unknown Object (File)
Tue, Jul 28, 5:28 AM
Unknown Object (File)
Sun, Jul 26, 12:33 AM
Unknown Object (File)
Fri, Jul 24, 5:37 AM
Unknown Object (File)
Fri, Jul 24, 5:23 AM
Unknown Object (File)
Thu, Jul 23, 10:51 AM
Unknown Object (File)
Thu, Jul 23, 10:29 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