diff options
-rw-r--r-- | sys/vm/vm_object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 6f48b94..fa3cf6f 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -198,6 +198,7 @@ _vm_object_allocate(objtype_t type, vm_pindex_t size, vm_object_t object) object->root = NULL; object->type = type; object->size = size; + object->generation = 1; object->ref_count = 1; object->flags = 0; if ((object->type == OBJT_DEFAULT) || (object->type == OBJT_SWAP)) @@ -214,8 +215,6 @@ _vm_object_allocate(objtype_t type, vm_pindex_t size, vm_object_t object) object->backing_object = NULL; object->backing_object_offset = (vm_ooffset_t) 0; - atomic_add_int(&object->generation, 1); - mtx_lock(&vm_object_list_mtx); TAILQ_INSERT_TAIL(&vm_object_list, object, object_list); mtx_unlock(&vm_object_list_mtx); |