Commit ccd8c95a authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] (2/5) ext2_free_blocks() cleanup

we postpone releasing the quota until the end of ext2_free_blocks() and
do that at once. 
parent a12ebfc1
...@@ -249,7 +249,6 @@ void ext2_free_blocks (struct inode * inode, unsigned long block, ...@@ -249,7 +249,6 @@ void ext2_free_blocks (struct inode * inode, unsigned long block,
"bit already cleared for block %lu", "bit already cleared for block %lu",
block + i); block + i);
else { else {
DQUOT_FREE_BLOCK(inode, 1);
gdp->bg_free_blocks_count = gdp->bg_free_blocks_count =
cpu_to_le16(le16_to_cpu(gdp->bg_free_blocks_count)+1); cpu_to_le16(le16_to_cpu(gdp->bg_free_blocks_count)+1);
freed++; freed++;
...@@ -270,7 +269,7 @@ void ext2_free_blocks (struct inode * inode, unsigned long block, ...@@ -270,7 +269,7 @@ void ext2_free_blocks (struct inode * inode, unsigned long block,
error_return: error_return:
release_blocks(sb, freed); release_blocks(sb, freed);
unlock_super (sb); unlock_super (sb);
return; DQUOT_FREE_BLOCK(inode, freed);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment