diff options
-rw-r--r-- | ext2fs/truncate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c index d868931f..807bc3a7 100644 --- a/ext2fs/truncate.c +++ b/ext2fs/truncate.c @@ -325,9 +325,8 @@ diskfs_truncate (struct node *node, off_t length) node->allocsize = round_block (length); - /* Set our end-of-file variables to a pessimistic state -- it won't - hurt if they are wrong. */ - node->dn->last_block_allocated = 0; + /* Set our last_page_partially_writable to a pessimistic state -- it + won't hurt if is wrong. */ node->dn->last_page_partially_writable = trunc_page (node->allocsize) != node->allocsize; } |