summaryrefslogtreecommitdiff
path: root/fs/ext2/balloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext2/balloc.c')
-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);
}
/*