-/* $OpenBSD: ttm_bo.c,v 1.18 2015/09/27 11:09:26 jsg Exp $ */
+/* $OpenBSD: ttm_bo.c,v 1.19 2015/10/23 08:21:58 kettenis Exp $ */
/**************************************************************************
*
* Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA
}
bo->destroy = destroy;
- uvm_objinit(&bo->uobj, NULL, 1);
+ uvm_objinit(&bo->uobj, NULL, 0);
kref_init(&bo->kref);
kref_init(&bo->list_kref);
atomic_set(&bo->cpu_writers, 0);
-/* $OpenBSD: ttm_bo_vm.c,v 1.8 2015/09/27 11:09:26 jsg Exp $ */
+/* $OpenBSD: ttm_bo_vm.c,v 1.9 2015/10/23 08:21:58 kettenis Exp $ */
/**************************************************************************
*
* Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA
vma->vm_private_data = bo;
vma->vm_flags |= VM_IO | VM_MIXEDMAP | VM_DONTEXPAND | VM_DONTDUMP;
+#else
+ bo->uobj.uo_refs++;
#endif
return &bo->uobj;
out_unref: