The branch main has been updated by bz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ac4b43b7b9dd2dac5d7caf5d4c7aa0d670d38aec

commit ac4b43b7b9dd2dac5d7caf5d4c7aa0d670d38aec
Author:     Bjoern A. Zeeb <[email protected]>
AuthorDate: 2026-07-17 12:58:32 +0000
Commit:     Bjoern A. Zeeb <[email protected]>
CommitDate: 2026-07-24 19:33:56 +0000

    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
---
 sys/compat/linuxkpi/common/src/linux_page.c | 4 ++--
 1 file 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);

Reply via email to