[Ocfs2-test-devel] [PATCH 1/1] Ocfs2-test: Update test_truncate.c to use renamed ocfs2_inode_insert_extent()
Tristan Ye
tristan.ye at oracle.com
Wed Jan 6 20:59:33 PST 2010
W'd update the test_truncate.c since libocfs2 don't use ocfs2_insert_extent()
anymore, it was renamed to ocfs2_inode_insert_extent() instead.
Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
programs/truncate/ocfs2-tools/test_truncate.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/truncate/ocfs2-tools/test_truncate.c b/programs/truncate/ocfs2-tools/test_truncate.c
index e4042f4..1480ceb 100644
--- a/programs/truncate/ocfs2-tools/test_truncate.c
+++ b/programs/truncate/ocfs2-tools/test_truncate.c
@@ -176,8 +176,8 @@ static errcode_t custom_extend_allocation(ocfs2_filesys *fs, uint64_t ino,
* we insert each cluster in reverse. */
for(i = n_clusters; i; --i) {
tmpblk = blkno + ocfs2_clusters_to_blocks(fs, i - 1);
- ret = ocfs2_insert_extent(fs, ino, offset++,
- tmpblk, 1, 0);
+ ret = ocfs2_inode_insert_extent(fs, ino, offset++,
+ tmpblk, 1, 0);
if (ret)
goto bail;
}
--
1.5.5
More information about the Ocfs2-test-devel
mailing list