diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2026-07-17 12:58:32 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2026-07-24 19:33:56 +0000 |
| commit | ac4b43b7b9dd2dac5d7caf5d4c7aa0d670d38aec (patch) | |
| tree | 8cf3a86a873324880e197a2ef1766a3f511d37d5 | |
| parent | 0845efe88b355547b103dca90e69e46a3ebdd016 (diff) | |
LinuxKPI: prefer struct page [*] over struct vm_page[_t]
LinuxKPI is based on Linux 'struct page' which is currently aliased
to struct vm_page. Upcoming changes may change that so start using
'struct page *' instead vm_page_t to make future changes transparent.
This is a continuation of 9e9c682ff3a1 and should be a NOP.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste (no objections)
Differential Revision: https://reviews.freebsd.org/D58297
| -rw-r--r-- | sys/compat/linuxkpi/common/src/linux_page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_page.c b/sys/compat/linuxkpi/common/src/linux_page.c index 62bfa07dd297..e0385bf2d40a 100644 --- a/sys/compat/linuxkpi/common/src/linux_page.c +++ b/sys/compat/linuxkpi/common/src/linux_page.c @@ -743,7 +743,7 @@ void * linuxkpi_page_frag_alloc(struct page_frag_cache *pfc, size_t fragsz, gfp_t gfp) { - vm_page_t pages; + struct page *pages; if (fragsz == 0) return (NULL); @@ -765,7 +765,7 @@ linuxkpi_page_frag_alloc(struct page_frag_cache *pfc, void linuxkpi_page_frag_free(void *addr) { - vm_page_t page; + struct page *page; page = virt_to_page(addr); linux_free_pages(page, 0); |
