check_dirty: plug a PHOLD leak. from Greg Oster.

This commit is contained in:
yamt 2004-04-20 11:52:17 +00:00
parent 392d6f9af1
commit aa514117d5
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_vnops.c,v 1.129 2004/02/26 22:41:36 yamt Exp $ */ /* $NetBSD: lfs_vnops.c,v 1.130 2004/04/20 11:52:17 yamt Exp $ */
/*- /*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc. * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.129 2004/02/26 22:41:36 yamt Exp $"); __KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.130 2004/04/20 11:52:17 yamt Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -1482,7 +1482,7 @@ check_dirty(struct lfs *fs, struct vnode *vp,
} }
if (checkfirst && any_dirty) if (checkfirst && any_dirty)
return any_dirty; break;
if (by_list) { if (by_list) {
curpg = TAILQ_NEXT(curpg, listq); curpg = TAILQ_NEXT(curpg, listq);