summaryrefslogtreecommitdiff
path: root/ext2fs/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/truncate.c')
-rw-r--r--ext2fs/truncate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c
index f3063e37..5653cbe6 100644
--- a/ext2fs/truncate.c
+++ b/ext2fs/truncate.c
@@ -138,7 +138,10 @@ trunc_indirect (struct node *node, block_t end,
}
if (first == 0 && all_freed)
- free_block_run_free_ptr (fbr, p);
+ {
+ pager_flush_some (diskfs_disk_pager, boffs (*p), block_size);
+ free_block_run_free_ptr (fbr, p);
+ }
else if (modified)
record_indir_poke (node, ind_bh);
}