Date: Sun, 22 Sep 2024 14:03:26 GMT From: Bojan =?utf-8?Q?Novkovi=C4=87?= <bnovkov@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 29a6f8fd93c2 - main - vm: Use VM_ALLOC_NOFREE when allocating bogus_page Message-ID: <202409221403.48ME3QIh061952@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=29a6f8fd93c278f0c7d7b2248068bb0353027e4a commit 29a6f8fd93c278f0c7d7b2248068bb0353027e4a Author: Bojan Novković <bnovkov@FreeBSD.org> AuthorDate: 2024-09-22 13:31:45 +0000 Commit: Bojan Novković <bnovkov@FreeBSD.org> CommitDate: 2024-09-22 14:02:53 +0000 vm: Use VM_ALLOC_NOFREE when allocating bogus_page Allocate the 'bogus_page' page using VM_ALLOC_NOFREE since it never gets released. Differential Revision: https://reviews.freebsd.org/D46699 Reviewed by: alc, markj, kib --- sys/vm/vm_page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index ba32a9eb9e63..40108e8a9b0a 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -194,7 +194,7 @@ vm_page_init(void *dummy) fakepg_zone = uma_zcreate("fakepg", sizeof(struct vm_page), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); - bogus_page = vm_page_alloc_noobj(VM_ALLOC_WIRED); + bogus_page = vm_page_alloc_noobj(VM_ALLOC_WIRED | VM_ALLOC_NOFREE); } static int pgcache_zone_max_pcpu;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409221403.48ME3QIh061952>