diff options
Diffstat (limited to 'fs/ext2/balloc.c')
-rw-r--r-- | fs/ext2/balloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index baf71dd721fa..53be25158560 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c | |||
@@ -124,7 +124,7 @@ static int reserve_blocks(struct super_block *sb, int count) | |||
124 | return 0; | 124 | return 0; |
125 | } | 125 | } |
126 | 126 | ||
127 | percpu_counter_mod(&sbi->s_freeblocks_counter, -count); | 127 | percpu_counter_add(&sbi->s_freeblocks_counter, -count); |
128 | sb->s_dirt = 1; | 128 | sb->s_dirt = 1; |
129 | return count; | 129 | return count; |
130 | } | 130 | } |
@@ -134,7 +134,7 @@ static void release_blocks(struct super_block *sb, int count) | |||
134 | if (count) { | 134 | if (count) { |
135 | struct ext2_sb_info *sbi = EXT2_SB(sb); | 135 | struct ext2_sb_info *sbi = EXT2_SB(sb); |
136 | 136 | ||
137 | percpu_counter_mod(&sbi->s_freeblocks_counter, count); | 137 | percpu_counter_add(&sbi->s_freeblocks_counter, count); |
138 | sb->s_dirt = 1; | 138 | sb->s_dirt = 1; |
139 | } | 139 | } |
140 | } | 140 | } |