summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2013-05-04 18:38:16 +0000
committermdf <mdf@FreeBSD.org>2013-05-04 18:38:16 +0000
commitf106bf787a663f94d44ad2b9916394298e13428e (patch)
tree5b313d94527a89584be9fe6d0c9eec307caa6ac1
parent858e632fa772e70a4c71dab4a9d292bc89b92dff (diff)
downloadFreeBSD-src-f106bf787a663f94d44ad2b9916394298e13428e.zip
FreeBSD-src-f106bf787a663f94d44ad2b9916394298e13428e.tar.gz
Add missing vdrop() in error case.
Submitted by: Fahad (mohd.fahadullah@isilon.com) MFC after: 1 week
-rw-r--r--sys/kern/vfs_subr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 9a27ae7..de118f7 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -731,6 +731,7 @@ vlrureclaim(struct mount *mp)
(vp->v_object != NULL &&
vp->v_object->resident_page_count > trigger)) {
VOP_UNLOCK(vp, LK_INTERLOCK);
+ vdrop(vp);
goto next_iter_mntunlocked;
}
KASSERT((vp->v_iflag & VI_DOOMED) == 0,
OpenPOWER on IntegriCloud