[Ocfs2-commits] mfasheh commits r1525 - branches/dlm-changes/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Sep 29 20:09:39 CDT 2004


Author: mfasheh
Date: 2004-09-29 20:09:37 -0500 (Wed, 29 Sep 2004)
New Revision: 1525

Modified:
   branches/dlm-changes/src/alloc.c
Log:
* tiny cleanup of ocfs_free_file_extents



Modified: branches/dlm-changes/src/alloc.c
===================================================================
--- branches/dlm-changes/src/alloc.c	2004-09-30 01:01:10 UTC (rev 1524)
+++ branches/dlm-changes/src/alloc.c	2004-09-30 01:09:37 UTC (rev 1525)
@@ -3408,7 +3408,7 @@
 	int status = 0;
 	__u32 i;
 	__u32 numBitsAllocated = 0, bitmapOffset = 0;
-	ocfs2_extent_block *extent = NULL;
+	ocfs2_extent_block *extent;
 	struct buffer_head *extent_bh = NULL;
 	ocfs2_extent_list *fel;
 	ocfs2_dinode *fe;
@@ -3416,12 +3416,7 @@
 	LOG_ENTRY ();
 
 	fe = (ocfs2_dinode *) fe_bh->b_data;
-	if (OCFS_I(inode)->ip_blkno != fe->i_blkno)
-		BUG();
 
-	if (inode)
-		SET_BH_SEQNUM(inode, fe_bh);
-
 	fe = (ocfs2_dinode *) fe_bh->b_data;
 	fel = &fe->id2.i_list;
 
@@ -3454,7 +3449,7 @@
 				LOG_ERROR_STATUS(status);
 				goto leave;
 			}
-			extent = NULL;
+
 			status = ocfs_kill_this_tree(osb, extent_bh, handle, inode);
 			if (status < 0) {
 				LOG_ERROR_STATUS(status);



More information about the Ocfs2-commits mailing list