[Patch 6/8] 2.4: Fix jbd assert failure on IO error.

From: Stephen Tweedie (sct@redhat.com)
Date: Tue Mar 25 2003 - 12:39:40 EST


The buffer_uptodate flag gets cleared on IO failure, and this can panic
jbd when it tries to write such a buffer. Relax the panic to be just a
warning.

--- linux-2.4-ext3push/fs/jbd/transaction.c.=K0005=.orig 2003-03-25 10:59:15.000000000 +0000
+++ linux-2.4-ext3push/fs/jbd/transaction.c 2003-03-25 10:59:15.000000000 +0000
@@ -739,7 +739,8 @@ done_locked:
                 int offset;
                 char *source;
 
- J_ASSERT_JH(jh, buffer_uptodate(jh2bh(jh)));
+ J_EXPECT_JH(jh, buffer_uptodate(jh2bh(jh)),
+ "Possible IO failure.\n");
                 page = jh2bh(jh)->b_page;
                 offset = ((unsigned long) jh2bh(jh)->b_data) & ~PAGE_MASK;
                 source = kmap(page);
-
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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:20 EST