summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vnode_pager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index 9a13911..d6caf93 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -236,9 +236,7 @@ vnode_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
object->ref_count++;
VM_OBJECT_UNLOCK(object);
}
- VI_LOCK(vp);
- vp->v_usecount++;
- VI_UNLOCK(vp);
+ vref(vp);
return (object);
}
OpenPOWER on IntegriCloud