Use RW_NEW rather than calling bzero().

This commit is contained in:
Alan Cox 2015-03-01 05:18:02 +00:00
parent 9f8dca7d57
commit 777a36c5e3

View File

@ -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;