summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs/ext2fs_vnops.c
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-01-09 12:43:18 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-01-09 12:43:18 +0000
commitfb4205421dd06345cb985ab4252728fdb3a7a304 (patch)
tree5fb7c27ad703407502e64635f74ff375fb280958 /sys/ufs/ext2fs/ext2fs_vnops.c
parent046383c234884c958ab6ca9ea5fddba703102e1b (diff)
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_vnops.c')
-rw-r--r--sys/ufs/ext2fs/ext2fs_vnops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vnops.c b/sys/ufs/ext2fs/ext2fs_vnops.c
index 9d4a23fab82..a5fb2cdb455 100644
--- a/sys/ufs/ext2fs/ext2fs_vnops.c
+++ b/sys/ufs/ext2fs/ext2fs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vnops.c,v 1.43 2005/12/14 22:03:01 pedro Exp $ */
+/* $OpenBSD: ext2fs_vnops.c,v 1.44 2006/01/09 12:43:17 pedro Exp $ */
/* $NetBSD: ext2fs_vnops.c,v 1.1 1997/06/11 09:34:09 bouyer Exp $ */
/*
@@ -1327,10 +1327,12 @@ ext2fs_reclaim(v)
} */ *ap = v;
register struct vnode *vp = ap->a_vp;
struct inode *ip;
+#ifdef DIAGNOSTIC
extern int prtactive;
if (prtactive && vp->v_usecount != 0)
vprint("ext2fs_reclaim: pushing active", vp);
+#endif
/*
* Remove the inode from its hash chain.