summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2015-03-01 05:18:02 +0000
committeralc <alc@FreeBSD.org>2015-03-01 05:18:02 +0000
commit2ab42594efcb3080dc49f115e4745e0f2b7c5798 (patch)
tree144c3d8666f45347718c3782301875ae7cb7dfff /sys/vm/vm_object.c
parent0f385c398bba39be08809e5dd96da4c3b2cb56e6 (diff)
downloadFreeBSD-src-2ab42594efcb3080dc49f115e4745e0f2b7c5798.zip
FreeBSD-src-2ab42594efcb3080dc49f115e4745e0f2b7c5798.tar.gz
Use RW_NEW rather than calling bzero().
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 63127c0..ba9f45e 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -196,8 +196,7 @@ vm_object_zinit(void *mem, int size, int flags)
vm_object_t object;
object = (vm_object_t)mem;
- bzero(&object->lock, sizeof(object->lock));
- rw_init_flags(&object->lock, "vm object", RW_DUPOK);
+ rw_init_flags(&object->lock, "vm object", RW_DUPOK | RW_NEW);
/* These are true for any object that has been freed */
object->rtree.rt_root = 0;
OpenPOWER on IntegriCloud