From b0d360b541f0455ee01215238d208c3710b43611 Mon Sep 17 00:00:00 2001 From: Lu Fengqi Date: Sat, 23 Apr 2016 15:26:25 +0800 Subject: btrfs-progs: check: introduce function to check data backref in extent tree Introduce a new function check_data_extent_item() to check if the corresponding data backref exists in extent tree. Signed-off-by: Lu Fengqi Signed-off-by: Qu Wenruo Reviewed-by: Josef Bacik Signed-off-by: David Sterba --- ctree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index 5cb5533a..dda72d0e 100644 --- a/ctree.h +++ b/ctree.h @@ -2364,6 +2364,8 @@ int exclude_super_stripes(struct btrfs_root *root, struct btrfs_block_group_cache *cache); u64 add_new_free_space(struct btrfs_block_group_cache *block_group, struct btrfs_fs_info *info, u64 start, u64 end); +u64 hash_extent_data_ref(u64 root_objectid, u64 owner, u64 offset); + /* ctree.c */ int btrfs_comp_cpu_keys(struct btrfs_key *k1, struct btrfs_key *k2); int btrfs_del_ptr(struct btrfs_trans_handle *trans, struct btrfs_root *root, -- cgit v1.2.3