]> git.hungrycats.org Git - linux/commitdiff
[PATCH] (2/5) ext2_free_blocks() cleanup
authorAlexander Viro <viro@math.psu.edu>
Sat, 9 Feb 2002 03:16:56 +0000 (19:16 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 9 Feb 2002 03:16:56 +0000 (19:16 -0800)
we postpone releasing the quota until the end of ext2_free_blocks() and
do that at once.

fs/ext2/balloc.c

index b1d94cd8b6fe2f0da8bb89535ddf06bc65ce6c68..5cfa839dc145759f72211672fd74399ad3b23cfa 100644 (file)
@@ -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);
 }
 
 /*