xfs
[Top] [All Lists]

[PATCH] xfs_repair: remove unconditional ASSERT(0)

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfs_repair: remove unconditional ASSERT(0)
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Tue, 12 Mar 2013 09:50:21 -0500
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130216 Thunderbird/17.0.3
I don't know what I was thinking in 7e8e3cc, but I added an
ASSERT(0) in the main path.  Obviously this isn't right.

Just remove it.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

Really sorry, no idea what is up w/ my brain lately.
Trying to do too many things at once, too quickly.

diff --git a/repair/scan.c b/repair/scan.c
index 6a62dff..76bb7f1 100644
--- a/repair/scan.c
+++ b/repair/scan.c
@@ -1076,8 +1076,7 @@ scan_freelist(
                                  "freelist scan\n"), i);
                        return;
                }
-       } else /* should have been fixed in verify_set_agf() */
-               ASSERT(0);
+       }
 
        count = 0;
        for (;;) {

<Prev in Thread] Current Thread [Next in Thread>