diff options
author | Miles Bader <miles@gnu.org> | 1996-01-18 23:52:52 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-01-18 23:52:52 +0000 |
commit | f7c47875b2124b1ab51d0aa9a1740dc91e751532 (patch) | |
tree | 6a37d4ecb197cd635d8d466fb2b169e26b87ccf1 /ext2fs | |
parent | 203e8d81fd084b68803da38a7deb717f386d322d (diff) |
(diskfs_truncate): Don't set last_block_allocated.
Diffstat (limited to 'ext2fs')
-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; } |