Patchwork xfsprogs: Fix for xfstest 252 hang on ext4

login
register
mail settings
Submitter Allison Henderson
Date May 23, 2011, 8:34 p.m.
Message ID <4DDAC4F2.9090909@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/97051/
State Not Applicable
Headers show

Comments

Allison Henderson - May 23, 2011, 8:34 p.m.
Xfstests 252 hangs on ext4 due to a loop in xfsprogs that does not exit.  

Signed-off-by: Allison Henderson <achender@us.ibm.com>
---
:100644 100644 fa990cc... 81fc92c... M	io/fiemap.c
 io/fiemap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/io/fiemap.c b/io/fiemap.c
index fa990cc..81fc92c 100644
--- a/io/fiemap.c
+++ b/io/fiemap.c
@@ -246,7 +246,7 @@  fiemap_f(
 		       flg_w, _("FLAGS"));
 	}
 
-	while (!last && ((cur_extent + 1) != max_extents)) {
+	while (!last && (cur_extent <= max_extents)) {
 		if (max_extents)
 			num_extents = min(num_extents,
 					  max_extents - (cur_extent + 1));