[Ocfs2-commits] mfasheh commits r1222 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Jun 28 20:56:13 CDT 2004
Author: mfasheh
Date: 2004-06-28 19:56:11 -0500 (Mon, 28 Jun 2004)
New Revision: 1222
Modified:
trunk/src/journal.c
Log:
* Catch a bug before JBD normally does and print usefull information.
Modified: trunk/src/journal.c
===================================================================
--- trunk/src/journal.c 2004-06-29 00:55:45 UTC (rev 1221)
+++ trunk/src/journal.c 2004-06-29 00:56:11 UTC (rev 1222)
@@ -811,9 +811,18 @@
if (!found) {
i = handle->num_co;
- handle->co_buffs[i].blocknr = bh->b_blocknr;
handle->num_co++;
+ if (handle->num_co > handle->max_buffs) {
+ printk("ocfs2: Block %llu exceeds maximum handle "
+ "credits of %u!\n",
+ (unsigned long long)bh->b_blocknr,
+ handle->max_buffs);
+ BUG();
+ }
+
+ handle->co_buffs[i].blocknr = bh->b_blocknr;
+
/* The buffer has no copy out, we have two choices below.
*
* If we haven't read the buffer off disk (like in a
More information about the Ocfs2-commits
mailing list