|
@@ -2804,8 +2804,8 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac,
|
|
|
if (sbi->s_log_groups_per_flex) {
|
|
|
ext4_group_t flex_group = ext4_flex_group(sbi,
|
|
|
ac->ac_b_ex.fe_group);
|
|
|
- atomic_sub(ac->ac_b_ex.fe_len,
|
|
|
- &sbi->s_flex_groups[flex_group].free_clusters);
|
|
|
+ atomic64_sub(ac->ac_b_ex.fe_len,
|
|
|
+ &sbi->s_flex_groups[flex_group].free_clusters);
|
|
|
}
|
|
|
|
|
|
err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
|
|
@@ -4661,8 +4661,8 @@ do_more:
|
|
|
|
|
|
if (sbi->s_log_groups_per_flex) {
|
|
|
ext4_group_t flex_group = ext4_flex_group(sbi, block_group);
|
|
|
- atomic_add(count_clusters,
|
|
|
- &sbi->s_flex_groups[flex_group].free_clusters);
|
|
|
+ atomic64_add(count_clusters,
|
|
|
+ &sbi->s_flex_groups[flex_group].free_clusters);
|
|
|
}
|
|
|
|
|
|
ext4_mb_unload_buddy(&e4b);
|
|
@@ -4804,8 +4804,8 @@ int ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
|
|
|
|
|
|
if (sbi->s_log_groups_per_flex) {
|
|
|
ext4_group_t flex_group = ext4_flex_group(sbi, block_group);
|
|
|
- atomic_add(EXT4_NUM_B2C(sbi, blocks_freed),
|
|
|
- &sbi->s_flex_groups[flex_group].free_clusters);
|
|
|
+ atomic64_add(EXT4_NUM_B2C(sbi, blocks_freed),
|
|
|
+ &sbi->s_flex_groups[flex_group].free_clusters);
|
|
|
}
|
|
|
|
|
|
ext4_mb_unload_buddy(&e4b);
|