[Ocfs2-tools-devel] [PATCH 1/3] libocfs2: Remove split_rec from ocfs2_split_tree.

Sunil Mushran sunil.mushran at oracle.com
Mon May 17 11:26:35 PDT 2010


Signed-off-by: Sunil Mushran<sunil.mushran at oracle.com>


On 05/11/2010 12:05 AM, Tao Ma wrote:
> 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);
>
>    




More information about the Ocfs2-tools-devel mailing list