[Ocfs2-tools-devel] [PATCH] Modify one caller of ocfs2_insert_extent in fswreck.

Tao Ma tao.ma at oracle.com
Mon Oct 8 23:03:26 PDT 2007


ocfs2_insert_extent has a new parameter to indicate the extent flag.
So Modify the caller in fswreck to have this parameter.

Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
 fswreck/extent.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fswreck/extent.c b/fswreck/extent.c
index 18f2125..f75ef8a 100644
--- a/fswreck/extent.c
+++ b/fswreck/extent.c
@@ -104,7 +104,7 @@ static void custom_extend_allocation(ocfs2_filesys *fs, uint64_t ino,
 		for(i = n_clusters; i; --i) {
 			tmpblk = blkno + ocfs2_clusters_to_blocks(fs, i - 1);
 		 	ret = ocfs2_insert_extent(fs, ino, offset++,
-						  tmpblk, 1);
+						  tmpblk, 1, 0);
 			if (ret) 
 				FSWRK_COM_FATAL(progname, ret);	
 		}
-- 
1.5.3.2.g4f337



More information about the Ocfs2-tools-devel mailing list