[Ocfs2-tools-commits] zab commits r456 - trunk/libocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Dec 3 18:47:19 CST 2004


Author: zab
Date: 2004-12-03 18:47:17 -0600 (Fri, 03 Dec 2004)
New Revision: 456

Modified:
   trunk/libocfs2/extend_file.c
Log:
o give insert_extent the blkno not cluster of the new region


Modified: trunk/libocfs2/extend_file.c
===================================================================
--- trunk/libocfs2/extend_file.c	2004-12-03 22:54:35 UTC (rev 455)
+++ trunk/libocfs2/extend_file.c	2004-12-04 00:47:17 UTC (rev 456)
@@ -300,7 +300,7 @@
 {
 	errcode_t ret = 0;
 	uint64_t n_clusters = 0;
-	uint64_t clustno, blkno;
+	uint64_t blkno;
 
 	if (!(fs->fs_flags & OCFS2_FLAG_RW))
 		return OCFS2_ET_RO_FILESYS;
@@ -314,9 +314,7 @@
 		if (ret)
 			goto bail;
 
-		clustno = ocfs2_blocks_to_clusters(fs, blkno);
-
-	 	ret = ocfs2_insert_extent(fs, ino, clustno, n_clusters);
+	 	ret = ocfs2_insert_extent(fs, ino, blkno, n_clusters);
 		if (ret)
 			goto bail;
 



More information about the Ocfs2-tools-commits mailing list