Add the vnode interlock back around vget.

This commit is contained in:
John Dyson 1997-12-29 16:53:53 +00:00
parent c3ab585b5e
commit 82dc3896f6
1 changed files with 2 additions and 8 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vnode.h 8.7 (Berkeley) 2/4/94
* $Id: vnode.h,v 1.60 1997/12/29 00:24:16 dyson Exp $
* $Id: vnode.h,v 1.61 1997/12/29 01:03:55 dyson Exp $
*/
#ifndef _SYS_VNODE_H_
@ -239,12 +239,6 @@ extern int vttoif_tab[];
#define V_SAVEMETA 0x0002 /* vinvalbuf: leave indirect blocks */
#define REVOKEALL 0x0001 /* vop_revoke: revoke all aliases */
static __inline void
vref(struct vnode *vp)
{
vp->v_usecount++;
}
#define VREF(vp) vref(vp)
#ifdef DIAGNOSTIC
@ -529,7 +523,7 @@ struct vnode *
checkalias __P((struct vnode *vp, dev_t nvp_rdev, struct mount *mp));
void vput __P((struct vnode *vp));
void vrele __P((struct vnode *vp));
void vrefobj __P((struct vnode *vp));
void vref __P((struct vnode *vp));
extern vop_t **default_vnodeop_p;
#endif /* KERNEL */