From e3e6532c5231c4409da637326644895f3321ada6 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 15 Sep 1995 23:42:14 +0000 Subject: (trunc_indirect): Only record an indirect block as being modified when it actually is. --- ext2fs/truncate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext2fs') 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) -- cgit v1.2.3