Explain why itrunc() is OK w.r.t. crashes.
This commit is contained in:
parent
15a2693637
commit
8eb20827c2
1 changed files with 2 additions and 0 deletions
2
fs.c
2
fs.c
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue