version 1.65.2.2, 2017/08/25 05:46:46 |
version 1.66, 2017/06/04 08:05:42 |
Line 558 vflush_one(vnode_t *vp, vnode_t *skipvp, |
|
Line 558 vflush_one(vnode_t *vp, vnode_t *skipvp, |
|
return 0; |
return 0; |
/* |
/* |
* If FORCECLOSE is set, forcibly close the vnode. |
* If FORCECLOSE is set, forcibly close the vnode. |
* For block or character devices, revert to an |
|
* anonymous device. For all other files, just |
|
* kill them. |
|
*/ |
*/ |
if (flags & FORCECLOSE) { |
if (flags & FORCECLOSE) { |
if (vp->v_usecount > 1 && |
vgone(vp); |
(vp->v_type == VBLK || vp->v_type == VCHR)) |
|
vcache_make_anon(vp); |
|
else |
|
vgone(vp); |
|
return 0; |
return 0; |
} |
} |
vrele(vp); |
vrele(vp); |