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 | 1a0933a0434e88f5b3105086daaa6134b83b18cf (patch) | |
tree | 5325eacb6f1b940bb5e282d1378e34898da4f83b | |
parent | c18d43addfd8d09bb6e206bb53b563176944bc5e (diff) |
(diskfs_set_translator): When freeing passive translator, account for
blocks freed in NP->dn_stat.st_blocks.
-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; } |