From f7c47875b2124b1ab51d0aa9a1740dc91e751532 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 18 Jan 1996 23:52:52 +0000 Subject: (diskfs_truncate): Don't set last_block_allocated. --- ext2fs/truncate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ext2fs/truncate.c') 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; } -- cgit v1.2.3