summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-09-15 23:42:14 +0000
committerMiles Bader <miles@gnu.org>1995-09-15 23:42:14 +0000
commite3e6532c5231c4409da637326644895f3321ada6 (patch)
tree5245a48e3755f5bcfdcb663f4fceeff3eabb8a56 /ext2fs
parent3fc8b701fd64b5a9900c12d4c033ade0d8d015dd (diff)
(trunc_indirect): Only record an indirect block as being modified when it
actually is.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/truncate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c
index 01796b27..be843c3d 100644
--- a/ext2fs/truncate.c
+++ b/ext2fs/truncate.c
@@ -133,7 +133,8 @@ trunc_indirect (struct node *node, block_t end,
(*free_block)(ind_bh + index, index);
if (ind_bh[index])
all_freed = 0; /* Some descendent hasn't been freed. */
- modified = 1;
+ else
+ modified = 1;
}
if (first == 0 && all_freed)