summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-01-05 18:46:13 +0000
committeralc <alc@FreeBSD.org>2003-01-05 18:46:13 +0000
commit9b01bac020882b723504392dd00c011c0b911e23 (patch)
tree3d8038621580c82fde2af862855268b2247dbeba /sys
parent8e212c067127cf7538b4d2e0f7cf83e102b90f1a (diff)
downloadFreeBSD-src-9b01bac020882b723504392dd00c011c0b911e23.zip
FreeBSD-src-9b01bac020882b723504392dd00c011c0b911e23.tar.gz
Allocate bogus_page with VM_ALLOC_WIRED. (Previously, bogus_page's
allocation incremented the global count of wired pages, but not the page's own wire count. This inconsistency was introduced in revision 1.230.)
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_bio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 784a5c0..0c93f80 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -587,9 +587,8 @@ bufinit(void)
vm_object_lock(kernel_object);
bogus_page = vm_page_alloc(kernel_object,
((bogus_offset - VM_MIN_KERNEL_ADDRESS) >> PAGE_SHIFT),
- VM_ALLOC_NORMAL);
+ VM_ALLOC_NORMAL | VM_ALLOC_WIRED);
vm_object_unlock(kernel_object);
- cnt.v_wire_count++;
}
/*
OpenPOWER on IntegriCloud