mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
ext4: report the original old blocks count in a debug message when resizing
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>
This commit is contained in:
parent
03c1c29053
commit
d7574ad08b
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue