mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
This commit is contained in:
parent
17cccb6f90
commit
29a6f8fd93
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue