summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-15 13:43:10 +0000
committerjeff <jeff@FreeBSD.org>2005-03-15 13:43:10 +0000
commit2115694bbc6bb40d45f659eef89bac4b98ad6585 (patch)
treefb275de9da8c77cb90885f9d91dd77c47fc626d7
parent7e1186083ad2e468510b4b42d341bf66c6285390 (diff)
downloadFreeBSD-src-2115694bbc6bb40d45f659eef89bac4b98ad6585.zip
FreeBSD-src-2115694bbc6bb40d45f659eef89bac4b98ad6585.tar.gz
- Expose vholdl() so it may be used outside of vfs_subr.c
-rw-r--r--sys/kern/vfs_subr.c3
-rw-r--r--sys/sys/vnode.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 8d0d6c2..deb8ed5 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -90,7 +90,6 @@ static void syncer_shutdown(void *arg, int howto);
static int vtryrecycle(struct vnode *vp);
static void vbusy(struct vnode *vp);
static void vdropl(struct vnode *vp);
-static void vholdl(struct vnode *);
static void vinactive(struct vnode *, struct thread *);
static void v_incr_usecount(struct vnode *, int);
@@ -1992,7 +1991,7 @@ vhold(struct vnode *vp)
VI_UNLOCK(vp);
}
-static void
+void
vholdl(struct vnode *vp)
{
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 7217328..57a303b 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -621,6 +621,7 @@ int vget(struct vnode *vp, int lockflag, struct thread *td);
void vgone(struct vnode *vp);
void vgonel(struct vnode *vp, struct thread *td);
void vhold(struct vnode *);
+void vholdl(struct vnode *);
int vinvalbuf(struct vnode *vp, int save,
struct thread *td, int slpflag, int slptimeo);
int vtruncbuf(struct vnode *vp, struct ucred *cred, struct thread *td,
OpenPOWER on IntegriCloud