[Ocfs2-tools-devel] [RFC 4/4] dx_dirs v2: extent operations for dx_dir

Tao Ma tao.ma at oracle.com
Sun Dec 27 18:57:54 PST 2009


Hi coly,

Coly Li wrote:
> This patch removes ocfs2_remove_btree_range() and uses helper routines from libocfs2.
> 
> Signed-off-by: Coly Li <coly.li at suse.de>
> ---
> diff --git a/libocfs2/extent_tree.h b/libocfs2/extent_tree.h
> index 4e6e091..651d382 100644
> --- a/libocfs2/extent_tree.h
> +++ b/libocfs2/extent_tree.h
> @@ -109,3 +109,10 @@ int ocfs2_change_extent_flag(ocfs2_filesys *fs,
>  int ocfs2_remove_extent(ocfs2_filesys *fs,
>  			struct ocfs2_extent_tree *et,
>  			uint32_t cpos, uint32_t len);
> +void ocfs2_init_dx_root_extent_tree(struct ocfs2_extent_tree *et,
> +				ocfs2_filesys *fs,
> +				char *buf, uint64_t blkno);
> +int ocfs2_remove_btree_range(ocfs2_filesys *fs, struct ocfs2_dinode *di,
> +				struct ocfs2_extent_tree *et, uint32_t cpos,
> +				uint32_t p_cpos, uint32_t len);
> +
You forget to remove the declaration here. ;)

btw, this whole patch set looks sane. So please continue to implement 
the detail. Thanks for the hard work.

Regards,
Tao



More information about the Ocfs2-tools-devel mailing list