diff options
Diffstat (limited to 'sbin/fsck_ffs/inode.c')
-rw-r--r-- | sbin/fsck_ffs/inode.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sbin/fsck_ffs/inode.c b/sbin/fsck_ffs/inode.c index 1be39fa7e90..9324b60dab9 100644 --- a/sbin/fsck_ffs/inode.c +++ b/sbin/fsck_ffs/inode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inode.c,v 1.11 1997/10/06 15:33:33 csapuntz Exp $ */ +/* $OpenBSD: inode.c,v 1.12 1997/10/06 20:22:32 deraadt Exp $ */ /* $NetBSD: inode.c,v 1.23 1996/10/11 20:15:47 thorpej Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)inode.c 8.5 (Berkeley) 2/8/95"; #else -static char rcsid[] = "$OpenBSD: inode.c,v 1.11 1997/10/06 15:33:33 csapuntz Exp $"; +static char rcsid[] = "$OpenBSD: inode.c,v 1.12 1997/10/06 20:22:32 deraadt Exp $"; #endif #endif /* not lint */ @@ -573,8 +573,6 @@ allocino(request, type) { register ino_t ino; register struct dinode *dp; - struct cg *cgp = &cgrp; - int cg; time_t t; if (request == 0) @@ -586,17 +584,9 @@ allocino(request, type) break; if (ino == maxino) return (0); - cg = ino_to_cg(&sblock, ino); - getblk(&cgblk, cgtod(&sblock, cg), sblock.fs_cgsize); - if (!cg_chkmagic(cgp)) - pfatal("CG %d: BAD MAGIC NUMBER\n", cg); - setbit(cg_inosused(cgp), ino % sblock.fs_ipg); - cgp->cg_cs.cs_nifree--; - switch (type & IFMT) { case IFDIR: statemap[ino] = DSTATE; - cgp->cg_cs.cs_ndir++; break; case IFREG: case IFLNK: @@ -605,7 +595,6 @@ allocino(request, type) default: return (0); } - cgdirty(); dp = ginode(ino); dp->di_db[0] = allocblk((long)1); if (dp->di_db[0] == 0) { @@ -613,7 +602,6 @@ allocino(request, type) return (0); } dp->di_mode = type; - dp->di_flags = 0; (void)time(&t); dp->di_atime = t; dp->di_mtime = dp->di_ctime = dp->di_atime; |