[Ocfs2-commits] jlbec commits r1323 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Aug 3 14:47:53 CDT 2004


Author: jlbec
Date: 2004-08-03 13:47:51 -0500 (Tue, 03 Aug 2004)
New Revision: 1323

Modified:
   trunk/src/file.c
Log:

o skip_zeros is pointless with the new zeroing scheme.



Modified: trunk/src/file.c
===================================================================
--- trunk/src/file.c	2004-08-02 21:16:53 UTC (rev 1322)
+++ trunk/src/file.c	2004-08-03 18:47:51 UTC (rev 1323)
@@ -1188,9 +1188,6 @@
 	num_blocks = ocfs_clusters_to_blocks(osb->sb,
 					     numClustersAlloc);
 
-	if (S_ISDIR(inode->i_mode))
-		goto skip_zeros;
-
 #define	OCFS_MAX_ZERO_BLOCKS (4096)
 
 	if (system_file) {
@@ -1257,7 +1254,6 @@
 		kfree(bhs);
 	}
 
-skip_zeros:
 	ext_alloc_inode = ocfs_get_system_file_inode(osb, EXTENT_ALLOC_BITMAP_SYSTEM_INODE, osb->node_num);
 	if (!ext_alloc_inode) {
 		status = -EFAIL;



More information about the Ocfs2-commits mailing list