summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-01-17 21:24:27 +0000
committerkib <kib@FreeBSD.org>2010-01-17 21:24:27 +0000
commit1c4578d2239497e62b1656eb3cc8b6a85b145fad (patch)
treec26a3ace94fc7bdc9a333f04936cf4c9484d9ff1 /sys/sys
parentc3852c9e0e86dccecc5163b3ea19764f1afcf5cb (diff)
downloadFreeBSD-src-1c4578d2239497e62b1656eb3cc8b6a85b145fad.zip
FreeBSD-src-1c4578d2239497e62b1656eb3cc8b6a85b145fad.tar.gz
Add new function vunref(9) that decrements vnode use count (and hold
count) while vnode is exclusively locked. The code for vput(9), vrele(9) and vunref(9) is merged. In collaboration with: pho Reviewed by: alc MFC after: 3 weeks
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/vnode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index fc919a9..4c84ea3 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -632,6 +632,7 @@ void vholdl(struct vnode *);
int vinvalbuf(struct vnode *vp, int save, int slpflag, int slptimeo);
int vtruncbuf(struct vnode *vp, struct ucred *cred, struct thread *td,
off_t length, int blksize);
+void vunref(struct vnode *);
void vn_printf(struct vnode *vp, const char *fmt, ...) __printflike(2,3);
#define vprint(label, vp) vn_printf((vp), "%s\n", (label))
int vrecycle(struct vnode *vp, struct thread *td);
OpenPOWER on IntegriCloud