[Ocfs2-commits] mfasheh commits r2321 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed May 25 16:29:36 CDT 2005


Author: mfasheh
Signed-off-by: jlbec
Date: 2005-05-25 16:29:35 -0500 (Wed, 25 May 2005)
New Revision: 2321

Modified:
   trunk/fs/ocfs2/inode.c
Log:
* remove the bug on blkno = 0, we can get this from failed create of
  an inode.

Signed-off-by: jlbec



Modified: trunk/fs/ocfs2/inode.c
===================================================================
--- trunk/fs/ocfs2/inode.c	2005-05-25 19:16:39 UTC (rev 2320)
+++ trunk/fs/ocfs2/inode.c	2005-05-25 21:29:35 UTC (rev 2321)
@@ -713,14 +713,10 @@
 	if (!INODE_DELETED(inode))
 		ocfs2_checkpoint_inode(inode);
 
-	if (oi->ip_blkno == -1)
-		BUG();
+	mlog_bug_on_msg(!list_empty(&oi->ip_io_markers),
+			"Clear inode of %"MLFu64", inode has io markers\n",
+			oi->ip_blkno);
 
-	OCFS_ASSERT(list_empty(&oi->ip_io_markers));
-
-	mlog_bug_on_msg(oi->ip_blkno == 0,
-			"blkno of 0 can't happen!\n");
-
 	ocfs2_extent_map_drop(inode, 0);
 	ocfs2_extent_map_init(inode);
 
@@ -766,7 +762,6 @@
 	oi->ip_dir_start_lookup = 0;
 	oi->ip_blkno = 0ULL;
 
-
 bail:
 	mlog_exit_void();
 }



More information about the Ocfs2-commits mailing list