mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00: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
This commit is contained in:
parent
613723bac2
commit
cb8bfc4db8
|
@ -84,15 +84,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