diff options
author | John Dyson <dyson@FreeBSD.org> | 1997-12-29 16:54:03 +0000 |
---|---|---|
committer | John Dyson <dyson@FreeBSD.org> | 1997-12-29 16:54:03 +0000 |
commit | 483140ead1618cf00d359780f603758d3c8ccc2d (patch) | |
tree | f0809c2d627993dbf774ba4e22d35665479f6122 /sys/kern/vfs_subr.c | |
parent | 82dc3896f606affdb8d52cf46e7da56bba967e61 (diff) | |
download | src-483140ead1618cf00d359780f603758d3c8ccc2d.tar.gz src-483140ead1618cf00d359780f603758d3c8ccc2d.zip |
Notes
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 69f110188130..9a371b89c419 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.117 1997/12/29 00:22:45 dyson Exp $ + * $Id: vfs_subr.c,v 1.118 1997/12/29 01:03:41 dyson Exp $ */ /* @@ -880,6 +880,14 @@ vget(vp, flags, p) return (0); } +void +vref(struct vnode *vp) +{ + simple_lock(&vp->v_interlock); + vp->v_usecount++; + simple_unlock(&vp->v_interlock); +} + /* * Vnode put/release. * If count drops to zero, call inactive routine and return to freelist. |