diff options
author | Miles Bader <miles@gnu.org> | 1996-07-17 21:46:07 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-07-17 21:46:07 +0000 |
commit | 1256f0d989ab088f27e032e6c37c1dbba48958d8 (patch) | |
tree | 0a7e5130b2fd1a0bed61d1ee2d9626bff169b986 /ext2fs/truncate.c | |
parent | 77437ce31e9e57980c36c88cae60dfc2bf2c2883 (diff) |
(diskfs_truncate): Likewise.
Diffstat (limited to 'ext2fs/truncate.c')
-rw-r--r-- | ext2fs/truncate.c | 2 |
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; |