From 7ee50b3f90920f1b1e1d9ad8cd2898f249ba4f71 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 10 Jun 2008 23:10:30 +0000 Subject: 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@ --- sbin/fsck_ffs/pass1b.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/fsck_ffs/pass1b.c') 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; } -- cgit v1.2.3