summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-04-30 21:56:40 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-04-30 21:56:40 +0000
commit4eed52b3aaa476cb47de702e65ce4ce63bfd3fea (patch)
treecb1ddd73d5a20fd22d0b661ea898ae0d2ebe17c6 /sys/kern
parent5d79ad7170d9e5ffdeb9aa5870d1a3729057e720 (diff)
Right now, if anything internal changes with a uvm object, diverse
places in the tree need to be touched to update the object initialisation with respect to that. So, make a function (uvm_initobj) that takes the refcount, object and pager ops and does this initialisation for us. This should save on maintainance in the future. looked good to fgs@. Tedu complained about the British spelling but OKed it anyway.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_biomem.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/vfs_biomem.c b/sys/kern/vfs_biomem.c
index 21e74a75a38..c850b0dba57 100644
--- a/sys/kern/vfs_biomem.c
+++ b/sys/kern/vfs_biomem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_biomem.c,v 1.13 2010/04/21 03:04:04 deraadt Exp $ */
+/* $OpenBSD: vfs_biomem.c,v 1.14 2010/04/30 21:56:39 oga Exp $ */
/*
* Copyright (c) 2007 Artur Grabowski <art@openbsd.org>
*
@@ -64,10 +64,7 @@ buf_mem_init(vsize_t size)
buf_object = &buf_object_store;
- buf_object->pgops = NULL;
- RB_INIT(&buf_object->memt);
- buf_object->uo_npages = 0;
- buf_object->uo_refs = 1;
+ uvm_objinit(buf_object, NULL, 1);
}
/*