diff options
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/balloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 25f63d8c1b3d..6369bacf0dcb 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -1621,7 +1621,7 @@ ext4_fsblk_t ext4_has_free_blocks(struct ext4_sb_info *sbi, | |||
1621 | #ifdef CONFIG_SMP | 1621 | #ifdef CONFIG_SMP |
1622 | if (free_blocks - root_blocks < FBC_BATCH) | 1622 | if (free_blocks - root_blocks < FBC_BATCH) |
1623 | free_blocks = | 1623 | free_blocks = |
1624 | percpu_counter_sum_positive(&sbi->s_freeblocks_counter); | 1624 | percpu_counter_sum_and_set(&sbi->s_freeblocks_counter); |
1625 | #endif | 1625 | #endif |
1626 | if (free_blocks - root_blocks < nblocks) | 1626 | if (free_blocks - root_blocks < nblocks) |
1627 | return free_blocks - root_blocks; | 1627 | return free_blocks - root_blocks; |