commit 8eb20827c273df183986f95fc13cad8b28ea8ae6
parent 15a269363777c0cd95e2a56e7def0a4dc3122e21
Author: rtm <rtm>
Date: Mon, 20 Oct 2008 18:05:48 +0000
Explain why itrunc() is OK w.r.t. crashes.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs.c b/fs.c
@@ -359,6 +359,8 @@ bmap(struct inode *ip, uint bn, int alloc)
}
// Truncate inode (discard contents).
+// Only called after the last dirent referring
+// to this inode has been erased on disk.
static void
itrunc(struct inode *ip)
{