aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/resize.c
diff options
context:
space:
mode:
authorYongqiang Yang <xiaoqiangnk@gmail.com>2012-09-05 01:23:50 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-09-05 01:23:50 -0400
commitd7574ad08bac1ef89cb679d2c76c91ff9281c2e2 (patch)
tree5f4b0d7035c52c664a5aa3219fe82af0dffda7ee /fs/ext4/resize.c
parent03c1c29053f678234dbd51bf3d65f3b7529021de (diff)
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>
Diffstat (limited to 'fs/ext4/resize.c')
-rw-r--r--fs/ext4/resize.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c
index 28031c4e15e9..591f4bda1146 100644
--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -1719,8 +1719,7 @@ int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count)
1719 es->s_log_groups_per_flex) 1719 es->s_log_groups_per_flex)
1720 flexbg_size = 1 << es->s_log_groups_per_flex; 1720 flexbg_size = 1 << es->s_log_groups_per_flex;
1721 1721
1722 o_blocks_count = ext4_blocks_count(es); 1722 if (ext4_blocks_count(es) == n_blocks_count)
1723 if (o_blocks_count == n_blocks_count)
1724 goto out; 1723 goto out;
1725 1724
1726 flex_gd = alloc_flex_gd(flexbg_size); 1725 flex_gd = alloc_flex_gd(flexbg_size);