summaryrefslogtreecommitdiff
path: root/disk-io.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-06-17 15:49:00 +0800
committerDavid Sterba <dsterba@suse.cz>2015-06-17 16:08:35 +0200
commit0074cd315c9e82e4f0ff8348b77d785da7eb487b (patch)
tree2fbf266c7761d048e80d2fa5ec52dc880be1c951 /disk-io.h
parentcf4eb9a90e44937b395200d78172411f16fe31af (diff)
btrfs-progs: export read_extent_data function
Export it for later btrfs-map-logical cleanup. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'disk-io.h')
-rw-r--r--disk-io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/disk-io.h b/disk-io.h
index 2d625dab..d3e3aaac 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,