diff options
author | Miles Bader <miles@gnu.org> | 1996-05-02 00:59:04 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-02 00:59:04 +0000 |
commit | 774d7327d94ffe25b65fa1f4a4f48a053b6b518e (patch) | |
tree | 56bbce231232299170da10a7eceaf34b2ac22d6e /ufs-fsck | |
parent | 613a526d461f4f0d9fa9301e5458bd7a1941e29b (diff) |
(allocino, freeino): Frob NUM_FILES.
Diffstat (limited to 'ufs-fsck')
-rw-r--r-- | ufs-fsck/inode.c | 6 |
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--; +} |