summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ext2fs/ext2fs_inode.c
diff options
context:
space:
mode:
authorpedro <pedro@openbsd.org>2006-01-09 12:43:16 +0000
committerpedro <pedro@openbsd.org>2006-01-09 12:43:16 +0000
commit4df17c52c41e4e81ea7d5c991237105e675762ac (patch)
treea8b0f579c7ee27acb168ea675daa4f77c12abbc3 /sys/ufs/ext2fs/ext2fs_inode.c
parentavoid anything that isn't a library in warning for SHARED_LIBS. (diff)
downloadwireguard-openbsd-4df17c52c41e4e81ea7d5c991237105e675762ac.tar.xz
wireguard-openbsd-4df17c52c41e4e81ea7d5c991237105e675762ac.zip
Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
Diffstat (limited to 'sys/ufs/ext2fs/ext2fs_inode.c')
-rw-r--r--sys/ufs/ext2fs/ext2fs_inode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_inode.c b/sys/ufs/ext2fs/ext2fs_inode.c
index 57d37e6d360..03dfb174b57 100644
--- a/sys/ufs/ext2fs/ext2fs_inode.c
+++ b/sys/ufs/ext2fs/ext2fs_inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_inode.c,v 1.31 2005/12/15 13:44:28 krw Exp $ */
+/* $OpenBSD: ext2fs_inode.c,v 1.32 2006/01/09 12:43:17 pedro Exp $ */
/* $NetBSD: ext2fs_inode.c,v 1.24 2001/06/19 12:59:18 wiz Exp $ */
/*
@@ -117,10 +117,13 @@ ext2fs_inactive(v)
struct proc *p = ap->a_p;
struct timespec ts;
int error = 0;
+#ifdef DIAGNOSTIC
extern int prtactive;
-
+
if (prtactive && vp->v_usecount != 0)
vprint("ext2fs_inactive: pushing active", vp);
+#endif
+
/* Get rid of inodes related to stale file handles. */
if (ip->i_e2fs_mode == 0 || ip->i_e2fs_dtime != 0)
goto out;