diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-04-05 00:08:14 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-04-05 00:08:14 +0000 |
commit | 5fb8321441b128744285e783e8468a8a0ee10698 (patch) | |
tree | 0590cc77728210ee8aa841b6a5e311af959071ba /ufs/inode.c | |
parent | 046941da64a1367c1ce88827c42ef285f9a5aabd (diff) |
(diskfs_set_translator): When freeing passive translator, account for
blocks freed in NP->dn_stat.st_blocks.
Diffstat (limited to 'ufs/inode.c')
-rw-r--r-- | ufs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ufs/inode.c b/ufs/inode.c index e5ba31c9..80a5fcff 100644 --- a/ufs/inode.c +++ b/ufs/inode.c @@ -1,5 +1,5 @@ /* Inode management routines - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 1995 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -492,6 +492,7 @@ diskfs_set_translator (struct node *np, char *name, u_int namelen, ffs_blkfree (np, blkno, sblock->fs_bsize); di->di_trans = 0; record_poke (di, sizeof (struct dinode)); + np->dn_stat.st_blocks -= btodb (sblock->fs_bsize); np->istranslated = 0; np->dn_set_ctime = 1; } |