mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
LinuxKPI: Move page_address definition from linux/gfp.h to linux/mm.h
To match Linux. Some future changes may depend on proper location.
Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45448
(cherry picked from commit cb8bfc4db8)
This commit is contained in:
parent
89e485e04d
commit
80ade5b694
2 changed files with 8 additions and 9 deletions
|
|
@ -85,15 +85,6 @@ struct page_frag_cache {
|
|||
int pagecnt_bias;
|
||||
};
|
||||
|
||||
/*
|
||||
* Resolve a page into a virtual address:
|
||||
*
|
||||
* NOTE: This function only works for pages allocated by the kernel.
|
||||
*/
|
||||
void *linux_page_address(struct page *);
|
||||
|
||||
#define page_address(page) linux_page_address(page)
|
||||
|
||||
/*
|
||||
* Page management for unmapped pages:
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -178,6 +178,14 @@ get_order(unsigned long size)
|
|||
return (order);
|
||||
}
|
||||
|
||||
/*
|
||||
* Resolve a page into a virtual address:
|
||||
*
|
||||
* NOTE: This function only works for pages allocated by the kernel.
|
||||
*/
|
||||
void *linux_page_address(struct page *);
|
||||
#define page_address(page) linux_page_address(page)
|
||||
|
||||
static inline void *
|
||||
lowmem_page_address(struct page *page)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue