提交 8eb20827 创建 作者: rtm's avatar rtm

Explain why itrunc() is OK w.r.t. crashes.

上级 15a26936
...@@ -359,6 +359,8 @@ bmap(struct inode *ip, uint bn, int alloc) ...@@ -359,6 +359,8 @@ bmap(struct inode *ip, uint bn, int alloc)
} }
// Truncate inode (discard contents). // Truncate inode (discard contents).
// Only called after the last dirent referring
// to this inode has been erased on disk.
static void static void
itrunc(struct inode *ip) itrunc(struct inode *ip)
{ {
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论