Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359026
b: refs/heads/master
c: 712ddc5
h: refs/heads/master
v: v3
  • Loading branch information
Wang Shilong authored and Jan Kara committed Feb 7, 2013
1 parent e1116b4 commit bce4d32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e3dffc651cb668e1ff4d8b89cc1c3dde7540d3b
refs/heads/master: 712ddc52ffa1f5324cd8f682d9e5b047b91f34d3
11 changes: 1 addition & 10 deletions trunk/fs/ext2/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,6 @@ read_block_bitmap(struct super_block *sb, unsigned int block_group)
return bh;
}

static void release_blocks(struct super_block *sb, int count)
{
if (count) {
struct ext2_sb_info *sbi = EXT2_SB(sb);

percpu_counter_add(&sbi->s_freeblocks_counter, count);
}
}

static void group_adjust_blocks(struct super_block *sb, int group_no,
struct ext2_group_desc *desc, struct buffer_head *bh, int count)
{
Expand Down Expand Up @@ -569,7 +560,7 @@ void ext2_free_blocks (struct inode * inode, unsigned long block,
error_return:
brelse(bitmap_bh);
if (freed) {
release_blocks(sb, freed);
percpu_counter_add(&sbi->s_freeblocks_counter, freed);
dquot_free_block_nodirty(inode, freed);
mark_inode_dirty(inode);
}
Expand Down

0 comments on commit bce4d32

Please sign in to comment.