linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ext4: teach resize report old blocks count correctly
@ 2012-02-01  3:01 Yongqiang Yang
  2012-02-01  3:01 ` [PATCH 2/2] ext4: ignore last group without enough space when resizing Yongqiang Yang
  2012-05-10 13:15 ` [PATCH 1/2] ext4: teach resize report old blocks count correctly Yongqiang Yang
  0 siblings, 2 replies; 5+ messages in thread
From: Yongqiang Yang @ 2012-02-01  3:01 UTC (permalink / raw)
  To: linux-ext4, dsd; +Cc: tytso, Yongqiang Yang

o_blocks_count should not be changed, becasuse it is used later when
reporting old blocks count in debug mode.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
---
 fs/ext4/resize.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c
index 59fa0be..601fea1 100644
--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -1654,8 +1654,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);
-- 
1.7.5.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-10 13:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-01  3:01 [PATCH 1/2] ext4: teach resize report old blocks count correctly Yongqiang Yang
2012-02-01  3:01 ` [PATCH 2/2] ext4: ignore last group without enough space when resizing Yongqiang Yang
2012-04-02 15:04   ` Daniel Drake
2012-04-02 15:06     ` Yongqiang Yang
2012-05-10 13:15 ` [PATCH 1/2] ext4: teach resize report old blocks count correctly Yongqiang Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).