git: 9a52d308257b - stable/15 - LinuxKPI: prefer struct page [*] over struct vm_page[_t]

Bjoern A. Zeeb <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a66a208.273ec.57d752a9__4054.86323158897$1785111292$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by bz:

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

commit 9a52d308257b42e8309adb41a640ec57f5533b83
Author:     Bjoern A. Zeeb <[email protected]>
AuthorDate: 2026-07-17 12:58:32 +0000
Commit:     Bjoern A. Zeeb <[email protected]>
CommitDate: 2026-07-26 16:48:58 +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
    Reviewed by:    emaste (no objections)
    Differential Revision: https://reviews.freebsd.org/D58297
    
    (cherry picked from commit ac4b43b7b9dd2dac5d7caf5d4c7aa0d670d38aec)
---
 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 f562bd5e0dbd..576b8d79c52d 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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.