ext4: report the original old blocks count in a debug message when resizing
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 5 Sep 2012 05:23:50 +0000 (01:23 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 Sep 2012 05:23:50 +0000 (01:23 -0400)
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>
fs/ext4/resize.c

index 28031c4e15e9c1653c91d1a9816bd8ecbe009ae2..591f4bda1146d5335b5bb1ffff4ef5a5b645c8ee 100644 (file)
@@ -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);