[Ocfs2-tools-devel] [PATCH 1/3] libocfs2: Remove split_rec from ocfs2_split_tree.
Tao Ma
tao.ma at oracle.com
Tue May 11 00:05:07 PDT 2010
In ocfs2 kernel, we use split_rec to generate rec.
While in tools, we have added ctxt.rec, so remove
split_rec. What's more, there is also a bug if we
set ctxt.rec again in split_rec.
Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
libocfs2/extent_tree.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/libocfs2/extent_tree.c b/libocfs2/extent_tree.c
index 3cbdcf8..738cb66 100644
--- a/libocfs2/extent_tree.c
+++ b/libocfs2/extent_tree.c
@@ -3973,7 +3973,6 @@ static int ocfs2_split_tree(ocfs2_filesys *fs,
char *last_eb_buf = NULL;
struct ocfs2_extent_block *eb;
struct ocfs2_extent_list *rightmost_el, *el;
- struct ocfs2_extent_rec split_rec;
struct ocfs2_extent_rec *rec;
struct ocfs2_insert_type insert;
struct insert_ctxt ctxt;
@@ -4015,7 +4014,6 @@ static int ocfs2_split_tree(ocfs2_filesys *fs,
insert.ins_contig = CONTIG_NONE;
insert.ins_split = SPLIT_RIGHT;
insert.ins_tree_depth = depth;
- ctxt.rec = split_rec;
ret = ocfs2_do_insert_extent(&ctxt, &insert);
--
1.7.0.4
More information about the Ocfs2-tools-devel
mailing list