aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-08-02 05:05:34 +0000
committerAlan Cox <alc@FreeBSD.org>2003-08-02 05:05:34 +0000
commit105660e8ba16c19cb469c3a4b1259d0a0476d857 (patch)
treeb8f50be856f35153b1b3501efa289ec14a58ea3b /sys
parentefd02757c242c5df3149b8257b95d7fdb6c316f8 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_bio.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index f6e8787bdbe21..688f4c0c85514 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -493,7 +493,6 @@ void
bufinit(void)
{
struct buf *bp;
- vm_offset_t bogus_offset;
int i;
GIANT_REQUIRED;
@@ -586,12 +585,8 @@ bufinit(void)
* from buf_daemon.
*/
- bogus_offset = kmem_alloc_pageable(kernel_map, PAGE_SIZE);
- VM_OBJECT_LOCK(kernel_object);
- bogus_page = vm_page_alloc(kernel_object,
- ((bogus_offset - VM_MIN_KERNEL_ADDRESS) >> PAGE_SHIFT),
+ bogus_page = vm_page_alloc(NULL, 0, VM_ALLOC_NOOBJ |
VM_ALLOC_NORMAL | VM_ALLOC_WIRED);
- VM_OBJECT_UNLOCK(kernel_object);
}
/*