提交 e1626709 创建 作者: kolya's avatar kolya

free the indirect block

上级 e670a483
......@@ -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;
}
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论