From 1256f0d989ab088f27e032e6c37c1dbba48958d8 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 17 Jul 1996 21:46:07 +0000 Subject: (diskfs_truncate): Likewise. --- ext2fs/truncate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c index 5e503b29..d55740b1 100644 --- a/ext2fs/truncate.c +++ b/ext2fs/truncate.c @@ -297,6 +297,8 @@ diskfs_truncate (struct node *node, off_t length) rwlock_writer_lock (&node->dn->alloc_lock); + RECORD_LAST (node->dn, LAST_TRUNCATE, length); + /* Update the size on disk; fsck will finish freeing blocks if necessary should we crash. */ node->dn_stat.st_size = length; -- cgit v1.2.3