xfs
[Top] [All Lists]

[PATCH] xfsprogs: Fix for xfstest 252 hang on ext4

To: xfs-oss <xfs@xxxxxxxxxxx>, Ext4 Developers List <linux-ext4@xxxxxxxxxxxxxxx>
Subject: [PATCH] xfsprogs: Fix for xfstest 252 hang on ext4
From: Allison Henderson <achender@xxxxxxxxxxxxxxxxxx>
Date: Mon, 23 May 2011 13:34:58 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
Xfstests 252 hangs on ext4 due to a loop in xfsprogs that does not exit.  

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

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));
-- 
1.7.1

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] xfsprogs: Fix for xfstest 252 hang on ext4, Allison Henderson <=