summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-03-23 16:08:34 +0800
committerDavid Sterba <dsterba@suse.com>2020-05-25 11:25:21 +0200
commit1b60d2ec982a35c2953d81d035e1d7fc7c89f42a (patch)
tree850c3ca66abe283c0658a427c694bbece11b438c /fs/btrfs/backref.h
parentd36e7f0e8fedd0675789b4fc5869d8d48d33e18a (diff)
downloadlinux-1b60d2ec982a35c2953d81d035e1d7fc7c89f42a.tar.gz
linux-1b60d2ec982a35c2953d81d035e1d7fc7c89f42a.tar.bz2
linux-1b60d2ec982a35c2953d81d035e1d7fc7c89f42a.zip
btrfs: backref: rename and move handle_one_tree_block()
This function is the major part of backref cache build process, move it to backref.c so we can reuse it later. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.h')
-rw-r--r--fs/btrfs/backref.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/backref.h b/fs/btrfs/backref.h
index a7697de925d5..5839da215ff6 100644
--- a/fs/btrfs/backref.h
+++ b/fs/btrfs/backref.h
@@ -363,4 +363,10 @@ static inline void btrfs_backref_panic(struct btrfs_fs_info *fs_info,
bytenr);
}
+int btrfs_backref_add_tree_node(struct btrfs_backref_cache *cache,
+ struct btrfs_path *path,
+ struct btrfs_backref_iter *iter,
+ struct btrfs_key *node_key,
+ struct btrfs_backref_node *cur);
+
#endif