Date: Mon, 27 Jul 2026 00:10:48 +0000 From: Bjoern A. Zeeb <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 9a52d308257b - stable/15 - LinuxKPI: prefer struct page [*] over struct vm_page[_t] Message-ID: <6a66a208.273ec.57d752a9@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=9a52d308257b42e8309adb41a640ec57f5533b83 commit 9a52d308257b42e8309adb41a640ec57f5533b83 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2026-07-17 12:58:32 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> 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);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a66a208.273ec.57d752a9>
