[Ocfs2-commits] mfasheh commits r1200 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Jun 23 13:25:53 CDT 2004


Author: mfasheh
Date: 2004-06-23 12:25:51 -0500 (Wed, 23 Jun 2004)
New Revision: 1200

Modified:
   trunk/src/inode.c
Log:
* fix a leak in the extent_cache -- the root inodes extent map wasn't
  being cleared in clear_inode.



Modified: trunk/src/inode.c
===================================================================
--- trunk/src/inode.c	2004-06-23 16:45:20 UTC (rev 1199)
+++ trunk/src/inode.c	2004-06-23 17:25:51 UTC (rev 1200)
@@ -749,6 +749,9 @@
 		goto bail;
 	}
 
+	ocfs_extent_map_destroy (&OCFS_I(inode)->ip_ext_map);
+	ocfs_extent_map_init (&OCFS_I(inode)->ip_ext_map);
+
 	if (inode == osb->root_inode) {
 		LOG_TRACE_STR("this is the root inode, doing cleanup now!");
 		ocfs_sync_blockdev(inode->i_sb);
@@ -758,9 +761,6 @@
 		goto bail;
 	}
 
-	ocfs_extent_map_destroy (&OCFS_I(inode)->ip_ext_map);
-	ocfs_extent_map_init (&OCFS_I(inode)->ip_ext_map);
-
 	down(&recovery_list_sem);
 	list_del(&OCFS_I(inode)->ip_recovery_list);
 	up(&recovery_list_sem);



More information about the Ocfs2-commits mailing list