Re: Debugging help: BUG: Assertion failure with ext3-0.95 for 2.4.7

Stephen C. Tweedie (sct@redhat.com)
Thu, 9 Aug 2001 17:22:46 +0100


Hi,

On Thu, Aug 09, 2001 at 05:24:05PM +0200, Christian Borntraeger wrote:
>
> Hello ext3-developers,
>
> Just to summarize, I reported a kernel bug message with ext3 on S/390 in
> transaction.c. I was able to reproduce it with a ext3 on LVM and on MD.
> Tom Rini reported a similar problem on PPC. (both big endian). I have sent
> a backtrace and with jbd-debug set to 5 I was not able to reproduce the
> problem until now.

Thanks. I think it's due to a missing endian-conversion in
ext3_clear_blocks(). Could you try the patch below?

Cheers,
Stephen

Index: fs/ext3/inode.c
===================================================================
RCS file: /cvsroot/gkernel/ext3/fs/ext3/inode.c,v
retrieving revision 1.63
diff -u -r1.63 inode.c
--- fs/ext3/inode.c 2001/07/30 12:46:12 1.63
+++ fs/ext3/inode.c 2001/08/09 16:19:29
@@ -1522,7 +1522,7 @@
* AKPM: turn on bforget in journal_forget()!!!
*/
for (p = first; p < last; p++) {
- u32 nr = *p;
+ u32 nr = le32_to_cpu(*p);
if (nr) {
struct buffer_head *bh;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/