From 5fb8321441b128744285e783e8468a8a0ee10698 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 5 Apr 1995 00:08:14 +0000 Subject: (diskfs_set_translator): When freeing passive translator, account for blocks freed in NP->dn_stat.st_blocks. --- ufs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ufs/inode.c') 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; } -- cgit v1.2.3