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:
Vladimir Kondratyev 2024-06-06 23:42:06 +03:00
parent 613723bac2
commit cb8bfc4db8
2 changed files with 8 additions and 9 deletions

View file

@ -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:
*/

View file

@ -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)
{