diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-10 00:58:51 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-10 00:58:51 +0200 |
commit | 24aaa8ef4e2b5764ada1fc69787e2fbd4f6276e5 (patch) | |
tree | 7f83cc8e52b5f2edc5d89d2d1808d0972831f9bf /fs/ext4/resize.c | |
parent | ext4: convert s_{dirty,free}blocks_counter to s_{dirty,free}clusters_counter (diff) | |
download | linux-24aaa8ef4e2b5764ada1fc69787e2fbd4f6276e5.tar.xz linux-24aaa8ef4e2b5764ada1fc69787e2fbd4f6276e5.zip |
ext4: convert the free_blocks field in s_flex_groups to be free_clusters
Convert the free_blocks to be free_clusters to make the final revised
bigalloc changes easier to read/understand.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/resize.c')
-rw-r--r-- | fs/ext4/resize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index a324a537f2dc..95a09ddca3b9 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c @@ -946,8 +946,8 @@ int ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input) sbi->s_log_groups_per_flex) { ext4_group_t flex_group; flex_group = ext4_flex_group(sbi, input->group); - atomic_add(input->free_blocks_count, - &sbi->s_flex_groups[flex_group].free_blocks); + atomic_add(EXT4_B2C(sbi, input->free_blocks_count), + &sbi->s_flex_groups[flex_group].free_clusters); atomic_add(EXT4_INODES_PER_GROUP(sb), &sbi->s_flex_groups[flex_group].free_inodes); } |