diff options
author | des <des@FreeBSD.org> | 2007-03-31 23:57:17 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2007-03-31 23:57:17 +0000 |
commit | b0b258dcad8e2fefcf53d7274cbe03b227d1a7f8 (patch) | |
tree | 458fffab992364449001618509cc70837224c553 /sys/kern | |
parent | b0b93a3c55b874a04a163db8dcf6af0b7e28b2e4 (diff) | |
download | FreeBSD-src-b0b258dcad8e2fefcf53d7274cbe03b227d1a7f8.zip FreeBSD-src-b0b258dcad8e2fefcf53d7274cbe03b227d1a7f8.tar.gz |
Make vdropl() public; zfs needs it. There is also plenty of existing
file system code (mostly *_reclaim()) which look like this:
VOP_LOCK(vp);
/* examine vp */
VOP_UNLOCK(vp);
vdrop(vp);
This can now be rewritten to:
VOP_LOCK(vp);
/* examine vp */
vdropl(vp); /* will unlock vp */
MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_subr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index bad9828..d38f583 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -95,7 +95,6 @@ static int flushbuflist(struct bufv *bufv, int flags, struct bufobj *bo, 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 vinactive(struct vnode *, struct thread *); static void v_incr_usecount(struct vnode *); static void v_decr_usecount(struct vnode *); @@ -2214,7 +2213,7 @@ vdrop(struct vnode *vp) * the vnode we will free it if it has been vgone'd otherwise it is * placed on the free list. */ -static void +void vdropl(struct vnode *vp) { |