public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: Fix the loop condition in ext4_mb_free_committed_blocks
@ 2008-06-11  3:55 Shen Feng
  2008-06-11 11:34 ` Aneesh Kumar K.V
  2008-06-11 14:23 ` Theodore Tso
  0 siblings, 2 replies; 4+ messages in thread
From: Shen Feng @ 2008-06-11  3:55 UTC (permalink / raw)
  To: linux-ext4, Theodore Tso, Mingming Cao, Andrew Morton


Since md is freed before the do-while checks it,
it's better to change it to while(1).

Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
---
 fs/ext4/mballoc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 42553f6..063f820 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2572,7 +2572,7 @@ ext4_mb_free_committed_blocks(struct super_block *sb)
 		kfree(md);
 		ext4_mb_release_desc(&e4b);
 
-	} while (md);
+	} while (1);
 
 	mb_debug("freed %u blocks in %u structures\n", count, count2);
 }
-- 
1.5.4.5

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

end of thread, other threads:[~2008-06-12  3:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11  3:55 [PATCH] ext4: Fix the loop condition in ext4_mb_free_committed_blocks Shen Feng
2008-06-11 11:34 ` Aneesh Kumar K.V
2008-06-11 14:23 ` Theodore Tso
2008-06-12  2:57   ` [PATCH V2] " Shen Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox