use uvm_obj_init() to initialize the pager ops and initial reference count.
This will help future uvm unlocking diffs.
ok mpi@, jsg@
}
bo->destroy = destroy ? destroy : ttm_bo_default_destroy;
- uvm_obj_init(&bo->base.uobj, NULL, 0);
kref_init(&bo->kref);
INIT_LIST_HEAD(&bo->lru);
INIT_LIST_HEAD(&bo->ddestroy);
if (unlikely(ret != 0))
goto out_unref;
- bo->base.uobj.pgops = &ttm_bo_vm_ops;
- bo->base.uobj.uo_refs++;
+ uvm_obj_init(&bo->base.uobj, &ttm_bo_vm_ops, 1);
return &bo->base.uobj;
out_unref:
ttm_bo_put(bo);