Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-02-08 19:17:09 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-02-08 19:17:09 -0800
commitf1228ed7bca2c2cece021289069d4cf903730a45 (patch)
tree0cdc11731f4bd575d1efa6dddceaa5566a3301c3
parent4bcb2fc4633decb03836f828c402d5d94b18fc96 (diff)
[PATCH] (5/5) ext2_free_blocks() cleanup
minor cleanup: update 'freed' only after we finish with group
-rw-r--r--fs/ext2/balloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c
index 45c014e5017e..487529819621 100644
--- a/fs/ext2/balloc.c
+++ b/fs/ext2/balloc.c
@@ -232,7 +232,7 @@ do_more:
bh = load_block_bitmap (sb, block_group);
if (IS_ERR(bh))
goto error_return;
-
+
gdp = ext2_get_group_desc (sb, block_group, &bh2);
if (!gdp)
goto error_return;
@@ -253,10 +253,8 @@ do_more:
ext2_error (sb, "ext2_free_blocks",
"bit already cleared for block %lu",
block + i);
- else {
+ else
group_freed++;
- freed++;
- }
}
mark_buffer_dirty(bh);
@@ -266,6 +264,8 @@ do_more:
}
group_release_blocks(gdp, bh2, group_freed);
+ freed += group_freed;
+
if (overflow) {
block += count;
count = overflow;