summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-17 21:46:07 +0000
committerMiles Bader <miles@gnu.org>1996-07-17 21:46:07 +0000
commit1256f0d989ab088f27e032e6c37c1dbba48958d8 (patch)
tree0a7e5130b2fd1a0bed61d1ee2d9626bff169b986 /ext2fs
parent77437ce31e9e57980c36c88cae60dfc2bf2c2883 (diff)
(diskfs_truncate): Likewise.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/truncate.c2
1 files changed, 2 insertions, 0 deletions
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;