Module Name: src
Committed By: matt
Date: Fri Apr 29 08:12:55 UTC 2011
Modified Files:
src/sys/miscfs/genfs [matt-nb5-mips64]: genfs_io.c
Log Message:
Fix placement of #ifdef DEBUG / #endif
To generate a diff of this commit:
cvs rdiff -u -r1.13.4.2 -r1.13.4.2.4.1 src/sys/miscfs/genfs/genfs_io.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/miscfs/genfs/genfs_io.c
diff -u src/sys/miscfs/genfs/genfs_io.c:1.13.4.2 src/sys/miscfs/genfs/genfs_io.c:1.13.4.2.4.1
--- src/sys/miscfs/genfs/genfs_io.c:1.13.4.2 Sat Apr 4 18:14:50 2009
+++ src/sys/miscfs/genfs/genfs_io.c Fri Apr 29 08:12:54 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_io.c,v 1.13.4.2 2009/04/04 18:14:50 snj Exp $ */
+/* $NetBSD: genfs_io.c,v 1.13.4.2.4.1 2011/04/29 08:12:54 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.13.4.2 2009/04/04 18:14:50 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.13.4.2.4.1 2011/04/29 08:12:54 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -845,19 +845,19 @@
by_list = (uobj->uo_npages <=
((endoff - startoff) >> PAGE_SHIFT) * UVM_PAGE_HASH_PENALTY);
-#if !defined(DEBUG)
/*
* if this vnode is known not to have dirty pages,
* don't bother to clean it out.
*/
if ((vp->v_iflag & VI_ONWORKLST) == 0) {
+#if !defined(DEBUG)
if ((flags & (PGO_FREE|PGO_DEACTIVATE)) == 0) {
goto skip_scan;
}
+#endif /* !defined(DEBUG) */
flags &= ~PGO_CLEANIT;
}
-#endif /* !defined(DEBUG) */
/*
* start the loop. when scanning by list, hold the last page