[Ocfs2-commits] jlbec commits r1527 - branches/dlm-changes/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Sep 30 18:11:31 CDT 2004


Author: jlbec
Date: 2004-09-30 18:11:30 -0500 (Thu, 30 Sep 2004)
New Revision: 1527

Modified:
   branches/dlm-changes/src/dir.c
Log:

o Fix extending in directories.



Modified: branches/dlm-changes/src/dir.c
===================================================================
--- branches/dlm-changes/src/dir.c	2004-09-30 19:41:54 UTC (rev 1526)
+++ branches/dlm-changes/src/dir.c	2004-09-30 23:11:30 UTC (rev 1527)
@@ -365,10 +365,9 @@
 	up(&OCFS_I(dir)->ip_sem);
 
 	if (extend) {
-		status = ocfs_extend_allocation(OCFS_SB(sb), dir, 
-						(1 + (OCFS_I(dir)->ip_alloc_size >> OCFS2_SB(sb)->s_clustersize_bits)), 
-						parent_fe_bh, handle, data_ac, 
-						meta_ac, NULL);
+		status = ocfs_extend_allocation(OCFS_SB(sb), dir, 1,
+						parent_fe_bh, handle,
+						data_ac, meta_ac, NULL);
 		OCFS_ASSERT(status != -EAGAIN);
 		if (status < 0) {
 			LOG_ERROR_STATUS(status);



More information about the Ocfs2-commits mailing list