Skip to content

Commit

Permalink
ext4: report the original old blocks count in a debug message when re…
Browse files Browse the repository at this point in the history
…sizing

Avoid changing o_blocks_count, since it is used later when reporting
old blocks count in debug mode.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Yongqiang Yang authored and Theodore Ts'o committed Sep 5, 2012
1 parent 03c1c29 commit d7574ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ext4/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,8 +1719,7 @@ int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count)
es->s_log_groups_per_flex)
flexbg_size = 1 << es->s_log_groups_per_flex;

o_blocks_count = ext4_blocks_count(es);
if (o_blocks_count == n_blocks_count)
if (ext4_blocks_count(es) == n_blocks_count)
goto out;

flex_gd = alloc_flex_gd(flexbg_size);
Expand Down

0 comments on commit d7574ad

Please sign in to comment.