[Ocfs2-commits] mfasheh commits r2344 - trunk/fs/ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue May 31 20:45:19 CDT 2005
Author: mfasheh
Signed-off-by: manish
Date: 2005-05-31 20:45:17 -0500 (Tue, 31 May 2005)
New Revision: 2344
Modified:
trunk/fs/ocfs2/alloc.c
Log:
* better comment in ocfs2_insert_extent. change a couple ASSERT to BUG_ON
Signed-off-by: manish
Modified: trunk/fs/ocfs2/alloc.c
===================================================================
--- trunk/fs/ocfs2/alloc.c 2005-06-01 01:44:19 UTC (rev 2343)
+++ trunk/fs/ocfs2/alloc.c 2005-06-01 01:45:17 UTC (rev 2344)
@@ -179,7 +179,7 @@
goto bail;
}
set_buffer_uptodate(bhs[i]);
- SET_BH_SEQNUM(inode, bhs[i]);
+ ocfs2_set_bh_seqnum(inode, bhs[i]);
status = ocfs_journal_access(handle, inode, bhs[i],
OCFS_JOURNAL_ACCESS_CREATE);
@@ -804,11 +804,13 @@
goto bail;
}
- /* We traveled all the way to the bottom and found nothing. */
+ /* We traveled all the way to the bottom of the allocation tree
+ * and didn't find room for any more extents - we need to add
+ * another tree level */
if (shift) {
/* if we hit a leaf, we'd better be empty :) */
- OCFS_ASSERT(el->l_next_free_rec == el->l_count);
- OCFS_ASSERT(!bh);
+ BUG_ON(el->l_next_free_rec != el->l_count);
+ BUG_ON(bh);
mlog(0, "ocfs2_allocate_extent: need to shift tree depth "
"(current = %u)\n", fe->id2.i_list.l_tree_depth);
More information about the Ocfs2-commits
mailing list