summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs.c b/fs.c
index 70c7ec1..91533d1 100644
--- 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)
{