diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-07-21 17:13:36 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:47:54 -0400 |
commit | 3889717d2851bf38015c0b291026c07c02264623 (patch) | |
tree | 730ce868c322caabfb550cae816c30d210f9d8be /fs/ext2/balloc.c | |
parent | 5ccb4a78d8c0e27985afec32cc4894d48e7b876e (diff) |
ext2: switch to dquot_free_block_nodirty()
brute-force conversion
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext2/balloc.c')
-rw-r--r-- | fs/ext2/balloc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index e8766a396776..db69c1206f13 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c | |||
@@ -571,7 +571,8 @@ do_more: | |||
571 | error_return: | 571 | error_return: |
572 | brelse(bitmap_bh); | 572 | brelse(bitmap_bh); |
573 | release_blocks(sb, freed); | 573 | release_blocks(sb, freed); |
574 | dquot_free_block(inode, freed); | 574 | dquot_free_block_nodirty(inode, freed); |
575 | mark_inode_dirty(inode); | ||
575 | } | 576 | } |
576 | 577 | ||
577 | /** | 578 | /** |
@@ -1418,7 +1419,8 @@ allocated: | |||
1418 | 1419 | ||
1419 | *errp = 0; | 1420 | *errp = 0; |
1420 | brelse(bitmap_bh); | 1421 | brelse(bitmap_bh); |
1421 | dquot_free_block(inode, *count-num); | 1422 | dquot_free_block_nodirty(inode, *count-num); |
1423 | mark_inode_dirty(inode); | ||
1422 | *count = num; | 1424 | *count = num; |
1423 | return ret_block; | 1425 | return ret_block; |
1424 | 1426 | ||
@@ -1428,8 +1430,10 @@ out: | |||
1428 | /* | 1430 | /* |
1429 | * Undo the block allocation | 1431 | * Undo the block allocation |
1430 | */ | 1432 | */ |
1431 | if (!performed_allocation) | 1433 | if (!performed_allocation) { |
1432 | dquot_free_block(inode, *count); | 1434 | dquot_free_block_nodirty(inode, *count); |
1435 | mark_inode_dirty(inode); | ||
1436 | } | ||
1433 | brelse(bitmap_bh); | 1437 | brelse(bitmap_bh); |
1434 | return 0; | 1438 | return 0; |
1435 | } | 1439 | } |