summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/pass1b.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2008-06-10 23:10:30 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2008-06-10 23:10:30 +0000
commit7ee50b3f90920f1b1e1d9ad8cd2898f249ba4f71 (patch)
treef55a5f123e32c765618921e5e1bf73eb119a5e27 /sbin/fsck_ffs/pass1b.c
parent00999f3dca30c91ccbd4f51b23ead58bf9b61b92 (diff)
reduce mem usage by about 20% by packing state and type of an inode in a single
byte. Original diff by drahn@; twists by me; ok millert@ thib@
Diffstat (limited to 'sbin/fsck_ffs/pass1b.c')
-rw-r--r--sbin/fsck_ffs/pass1b.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/pass1b.c b/sbin/fsck_ffs/pass1b.c
index 2b505240156..8f90a2c7497 100644
--- a/sbin/fsck_ffs/pass1b.c
+++ b/sbin/fsck_ffs/pass1b.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pass1b.c,v 1.15 2007/06/25 19:59:55 otto Exp $ */
+/* $OpenBSD: pass1b.c,v 1.16 2008/06/10 23:10:29 otto Exp $ */
/* $NetBSD: pass1b.c,v 1.10 1996/09/23 16:18:37 christos Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pass1b.c 8.1 (Berkeley) 6/5/93";
#else
-static const char rcsid[] = "$OpenBSD: pass1b.c,v 1.15 2007/06/25 19:59:55 otto Exp $";
+static const char rcsid[] = "$OpenBSD: pass1b.c,v 1.16 2008/06/10 23:10:29 otto Exp $";
#endif
#endif /* not lint */
@@ -83,7 +83,7 @@ pass1b(void)
if (dp == NULL)
continue;
idesc.id_number = inumber;
- if (statemap[inumber] != USTATE &&
+ if (GET_ISTATE(inumber) != USTATE &&
(ckinode(dp, &idesc) & STOP))
return;
}