From 507ad47156bf84b9ea320256ed15d553d02a0911 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 2 Aug 2003 05:05:34 +0000 Subject: Eliminate an abuse of kmem_alloc_pageable() in bufinit() by using VM_ALLOC_NOOBJ to allocate the bogus page. Reviewed by: tegge --- sys/kern/vfs_bio.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index f6e8787..688f4c0 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); } /* -- cgit v1.1