Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-02-08 19:16:56 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-02-08 19:16:56 -0800
commitccd8c95aa25a556db17a27184ab6f033b9180a1d (patch)
tree7d0b960c4a627805ba9e6797956696936fc823fa
parenta12ebfc1f227f3ae096ef89af2777bad2d16d117 (diff)
[PATCH] (2/5) ext2_free_blocks() cleanup
we postpone releasing the quota until the end of ext2_free_blocks() and do that at once.
-rw-r--r--fs/ext2/balloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c
index b1d94cd8b6fe..5cfa839dc145 100644
--- a/fs/ext2/balloc.c
+++ b/fs/ext2/balloc.c
@@ -249,7 +249,6 @@ do_more:
"bit already cleared for block %lu",
block + i);
else {
- DQUOT_FREE_BLOCK(inode, 1);
gdp->bg_free_blocks_count =
cpu_to_le16(le16_to_cpu(gdp->bg_free_blocks_count)+1);
freed++;
@@ -270,7 +269,7 @@ do_more:
error_return:
release_blocks(sb, freed);
unlock_super (sb);
- return;
+ DQUOT_FREE_BLOCK(inode, freed);
}
/*