diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-01-09 12:43:18 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-01-09 12:43:18 +0000 |
commit | fb4205421dd06345cb985ab4252728fdb3a7a304 (patch) | |
tree | 5fb7c27ad703407502e64635f74ff375fb280958 /sys/ufs/ext2fs | |
parent | 046383c234884c958ab6ca9ea5fddba703102e1b (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')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_inode.c | 7 | ||||
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_vnops.c | 4 |
2 files changed, 8 insertions, 3 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; 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. |