aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/super.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 9f6fa3f74629..04c693357336 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1694,12 +1694,12 @@ static int ext4_fill_flex_info(struct super_block *sb)
1694 gdp = ext4_get_group_desc(sb, i, NULL); 1694 gdp = ext4_get_group_desc(sb, i, NULL);
1695 1695
1696 flex_group = ext4_flex_group(sbi, i); 1696 flex_group = ext4_flex_group(sbi, i);
1697 atomic_set(&sbi->s_flex_groups[flex_group].free_inodes, 1697 atomic_add(ext4_free_inodes_count(sb, gdp),
1698 ext4_free_inodes_count(sb, gdp)); 1698 &sbi->s_flex_groups[flex_group].free_inodes);
1699 atomic_set(&sbi->s_flex_groups[flex_group].free_blocks, 1699 atomic_add(ext4_free_blks_count(sb, gdp),
1700 ext4_free_blks_count(sb, gdp)); 1700 &sbi->s_flex_groups[flex_group].free_blocks);
1701 atomic_set(&sbi->s_flex_groups[flex_group].used_dirs, 1701 atomic_add(ext4_used_dirs_count(sb, gdp),
1702 ext4_used_dirs_count(sb, gdp)); 1702 &sbi->s_flex_groups[flex_group].used_dirs);
1703 } 1703 }
1704 1704
1705 return 1; 1705 return 1;