version 1.14, 2011/10/07 09:35:06 |
version 1.14.6.1, 2012/02/18 07:35:35 |
Line 637 vrelel(vnode_t *vp, int flags) |
|
Line 637 vrelel(vnode_t *vp, int flags) |
|
|
|
KASSERT((vp->v_iflag & VI_XLOCK) == 0); |
KASSERT((vp->v_iflag & VI_XLOCK) == 0); |
|
|
|
#ifdef DIAGNOSTIC |
|
if ((vp->v_type == VBLK || vp->v_type == VCHR) && |
|
vp->v_specnode != NULL && vp->v_specnode->sn_opencnt != 0) { |
|
vprint("vrelel: missing VOP_CLOSE()", vp); |
|
} |
|
#endif |
|
|
/* |
/* |
* If not clean, deactivate the vnode, but preserve |
* If not clean, deactivate the vnode, but preserve |
* our reference across the call to VOP_INACTIVE(). |
* our reference across the call to VOP_INACTIVE(). |
|
|
return; |
return; |
} |
} |
|
|
#ifdef DIAGNOSTIC |
|
if ((vp->v_type == VBLK || vp->v_type == VCHR) && |
|
vp->v_specnode != NULL && vp->v_specnode->sn_opencnt != 0) { |
|
vprint("vrelel: missing VOP_CLOSE()", vp); |
|
} |
|
#endif |
|
|
|
/* |
/* |
* The vnode can gain another reference while being |
* The vnode can gain another reference while being |
* deactivated. If VOP_INACTIVE() indicates that |
* deactivated. If VOP_INACTIVE() indicates that |