summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/pass5.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2011-04-16 16:37:22 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2011-04-16 16:37:22 +0000
commitc9c962ef3d8d8b60db309c45a20d99b6e27cad53 (patch)
treee962ab2baaf76984978ccd2fdfa764779d66a200 /sbin/fsck_ffs/pass5.c
parentdec35c38d9c9a61a44ab91d3ed9421880058b08d (diff)
Blend in some code from netbsd and freebsd that reduces memory consumption
and speeds things up in a lot of cases. Prompted by Amit Kulkarni; ok krw@ on a slighly diffrenent incarnation
Diffstat (limited to 'sbin/fsck_ffs/pass5.c')
-rw-r--r--sbin/fsck_ffs/pass5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/pass5.c b/sbin/fsck_ffs/pass5.c
index 6db07feb217..f7a2ffbf3ce 100644
--- a/sbin/fsck_ffs/pass5.c
+++ b/sbin/fsck_ffs/pass5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pass5.c,v 1.39 2010/07/09 06:41:17 otto Exp $ */
+/* $OpenBSD: pass5.c,v 1.40 2011/04/16 16:37:21 otto Exp $ */
/* $NetBSD: pass5.c,v 1.16 1996/09/27 22:45:18 christos Exp $ */
/*
@@ -230,7 +230,7 @@ pass5(void)
if (fs->fs_postblformat == FS_42POSTBLFMT)
ocg->cg_magic = CG_MAGIC;
j = fs->fs_ipg * c;
- for (i = 0; i < cginosused[c]; j++, i++) {
+ for (i = 0; i < inostathead[c].il_numalloced; j++, i++) {
switch (GET_ISTATE(j)) {
case USTATE: