From 0074cd315c9e82e4f0ff8348b77d785da7eb487b Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Wed, 17 Jun 2015 15:49:00 +0800 Subject: btrfs-progs: export read_extent_data function Export it for later btrfs-map-logical cleanup. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- disk-io.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'disk-io.h') diff --git a/disk-io.h b/disk-io.h index 2d625da..d3e3aaa 100644 --- a/disk-io.h +++ b/disk-io.h @@ -69,6 +69,8 @@ struct btrfs_device; int read_whole_eb(struct btrfs_fs_info *info, struct extent_buffer *eb, int mirror); struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize, u64 parent_transid); +int read_extent_data(struct btrfs_root *root, char *data, u64 logical, + u64 *len, int mirror); void readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize, u64 parent_transid); struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, -- cgit v1.2.1