xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e1626709d6bfcf82dc630e3ae15887e05bb3aa47
parent e670a4835858b48e1568742dbe939800e2d44c13
Author: kolya <kolya>
Date:   Thu, 16 Oct 2008 15:00:23 +0000

free the indirect block

Diffstat:
Mfs.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/fs.c b/fs.c @@ -381,6 +381,7 @@ itrunc(struct inode *ip) bfree(ip->dev, a[j]); } brelse(bp); + bfree(ip->dev, ip->addrs[INDIRECT]); ip->addrs[INDIRECT] = 0; }