| 3023 | } |
| 3024 | |
| 3025 | void |
| 3026 | vrefact(struct vnode *vp) |
| 3027 | { |
| 3028 | |
| 3029 | CTR2(KTR_VFS, "%s: vp %p", __func__, vp); |
| 3030 | #ifdef INVARIANTS |
| 3031 | int old = atomic_fetchadd_int(&vp->v_usecount, 1); |
| 3032 | VNASSERT(old > 0, vp, ("%s: wrong use count %d", __func__, old)); |
| 3033 | #else |
| 3034 | refcount_acquire(&vp->v_usecount); |
| 3035 | #endif |
| 3036 | } |
| 3037 | |
| 3038 | void |
| 3039 | vlazy(struct vnode *vp) |
no test coverage detected