summaryrefslogtreecommitdiff
path: root/ufs-fsck/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufs-fsck/inode.c')
-rw-r--r--ufs-fsck/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufs-fsck/inode.c b/ufs-fsck/inode.c
index b2973c9d..7c81f39a 100644
--- a/ufs-fsck/inode.c
+++ b/ufs-fsck/inode.c
@@ -152,6 +152,7 @@ allocino (ino_t request, mode_t mode)
dino.di_mtime = dino.di_ctime = dino.di_atime;
dino.di_size = 0;
dino.di_blocks = 0;
+ num_files++;
write_inode (ino, &dino);
typemap[ino] = IFTODT (mode);
return ino;
@@ -197,7 +198,6 @@ freeino (ino_t inum)
clear_inode (inum, &dino);
inodestate[inum] = UNALLOC;
-}
-
-
+ num_files--;
+}